Access to current database from C-language function - Mailing list pgsql-hackers

From Achim Domma
Subject Access to current database from C-language function
Date
Msg-id 9533A207-2D9F-43B3-A7C4-07236B95AE4F@procoders.net
Whole thread Raw
Responses Re: Access to current database from C-language function
List pgsql-hackers
Hi,

I have read http://www.postgresql.org/docs/9.1/static/xfunc-c.html and my idea is, to write a C function which returns
aset of rows. To generate the result set, I would like to access indexes directly using the information I found at
http://www.postgresql.org/docs/9.1/static/indexam.html.But I don't get the idea how to glue both parts together!? Could
somebodygive me a starting point? How do I get a handle to the current database inside a C function? 

cheers,
Achim

pgsql-hackers by date:

Previous
From: pasman pasmański
Date:
Subject: problem with compiling beta3 on mingw32+WinXP
Next
From: Florian Pflug
Date:
Subject: Re: Access to current database from C-language function