Re: [GENERAL] Postgresql init and cleanup module functions

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [GENERAL] Postgresql init and cleanup module functions
Дата
Msg-id 20170905182856.ymmj2wtzeonfb4m5@alap3.anarazel.de
обсуждение исходный текст
Ответ на [GENERAL] Postgresql init and cleanup module functions  (Yan Pas <yanp.bugz@gmail.com>)
Ответы Re: [GENERAL] Postgresql init and cleanup module functions  (Yan Pas <yanp.bugz@gmail.com>)
Список pgsql-general
On 2017-09-05 20:15:57 +0300, Yan Pas wrote:
> I'm writing C postgresql module with some psql-functions and global state.
> Do module API provide any init and cleanup functions? If yes then it would
> be fine to see them in "35.9. C-Language Functions" help page."

The relevant doc page is at
https://www.postgresql.org/docs/current/static/xfunc-c.html

what you're looking for is _PG_init(). There effectively is no cleanup
logic, as modules cannot be unloaded anymore.

- Andres


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

Предыдущее
От: milist ujang
Дата:
Сообщение: [GENERAL] BDR, wal segment has been removed, is it possible move forward?
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: [GENERAL] BDR, wal segment has been removed, is it possible move forward?