Reputation: 6655
I am writing an extension function in C for PostgreSQL. I can find lots of examples online but nothing that explicitly shows how to actually write data to a table in an extension function?
Where do I need to look to find the right functionality/documentation for writing a record to an existing table as a C extension?
Upvotes: 0
Views: 244
Reputation: 6655
I should've googled a bit longer before posting. It seems that SPI fits my needs exactly
http://www.postgresql.org/docs/current/static/spi.html
Upvotes: 3