Getting my Database name in a C Extension - Mailing list pgsql-general

From Cedric Berger
Subject Getting my Database name in a C Extension
Date
Msg-id 542D6B24.3060109@precidata.com
Whole thread Raw
Responses Re: Getting my Database name in a C Extension
List pgsql-general
Hi,

I'm writing an extention (FDW), and I need, in my C code, the name of
my database ("contrib_regression_test" for example), and I've two
questions:

1) What is the easiest way to get that directly in C?

2) Is there a way to get this information in the SQL extension
installation/update scripts (like the @/extschema/@ substitution)?

Thanks,

--
Cedric Berger
Precidata Sarl
Maladière 71c
2000 Neuchâtel
cedric@precidata.com
032 930 29 62
079 934 11 02



pgsql-general by date:

Previous
From: "Andrus"
Date:
Subject: How to find greatest record before known values fast
Next
From: "john.tiger"
Date:
Subject: installing on mac air development machine