Getting my Database name in a C Extension

Поиск
Список
Период
Сортировка
От Cedric Berger
Тема Getting my Database name in a C Extension
Дата
Msg-id 542D7173.7000004@precidata.com
обсуждение исходный текст
Ответы Re: Getting my Database name in a C Extension  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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



В списке pgsql-general по дате отправления:

Предыдущее
От: Adam Brusselback
Дата:
Сообщение: Re: table versioning approach (not auditing)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Getting my Database name in a C Extension