Re: [GENERAL] Postgresql init and cleanup module functions - Mailing list pgsql-general

From Andres Freund
Subject Re: [GENERAL] Postgresql init and cleanup module functions
Date
Msg-id 20170905182856.ymmj2wtzeonfb4m5@alap3.anarazel.de
Whole thread Raw
In response to [GENERAL] Postgresql init and cleanup module functions  (Yan Pas <yanp.bugz@gmail.com>)
Responses Re: [GENERAL] Postgresql init and cleanup module functions
List 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 by date:

Previous
From: milist ujang
Date:
Subject: [GENERAL] BDR, wal segment has been removed, is it possible move forward?
Next
From: Craig Ringer
Date:
Subject: Re: [GENERAL] BDR, wal segment has been removed, is it possible move forward?