Getting my Database name in a C Extension

Поиск
Список
Период
Сортировка
От Cedric Berger
Тема Getting my Database name in a C Extension
Дата
Msg-id 542D6B24.3060109@precidata.com
обсуждение исходный текст
Ответы Re: Getting my Database name in a C Extension  (John R Pierce <pierce@hogranch.com>)
Список 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 по дате отправления:

Предыдущее
От: "Andrus"
Дата:
Сообщение: How to find greatest record before known values fast
Следующее
От: "john.tiger"
Дата:
Сообщение: installing on mac air development machine