On 10/2/2014 8:11 AM, Cedric Berger
wrote:
I'm writing an extention (FDW), and I need, in my C code, the name of you could SELECT CURRENT_CATALOG; using the SPI_ functions from your C, or directly in your SQL extension script... this returns the database name (the name is from the sql standard). see http://www.postgresql.org/docs/current/static/functions-info.html for more info functions like this available in SQL. -- john r pierce 37N 122W somewhere on the middle of the left coast |