0

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?

Demitri
  • 13,134
  • 4
  • 40
  • 41
jramm
  • 6,415
  • 4
  • 34
  • 73

1 Answers1

3

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

jramm
  • 6,415
  • 4
  • 34
  • 73