Accessiing database from inside of postgresql C function

From: Yan Pas <yanp(dot)bugz(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Accessiing database from inside of postgresql C function
Date: 2017-09-05 17:21:39
Message-ID: CADceNN5OjRiD2HBtMD68G+eBxMMReDQdHie1m9KAHBJbsXOqkg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

High!

I'm writing C postgresql module with postgresql functions and want to
access the tables from inside (SELECT mostly and maybe INSERT). Is it
possible? If yes what API can I use except classic TCP connection (not sure
if it's even legal)?

Kind Regards,
Yan

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2017-09-05 17:32:45 Re: Accessiing database from inside of postgresql C function
Previous Message Yan Pas 2017-09-05 17:15:57 Postgresql init and cleanup module functions