what about _PG_fini

From: Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: what about _PG_fini
Date: 2009-12-23 21:17:03
Message-ID: e94e14cd0912231317w441fad87gb3a4c517603a350c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello dear hackers,

I wonder what is the future of "_PG_fini", documentation say at [1]:
"Note that _PG_fini will only be called during an unload of the file,
not during process termination. (Presently, unloads are disabled and
will never occur, but this may change in the future.)"

Since 8.2 it is the same and no entry in the TODO list for that, also
I didn't find mails about that in the pgsql-hackers ML archive.

So:
1. do we want a _PG_fini which is call on server stop ?
2. what's actually the best way to execute some code when server stop,
if one have ideas ... ?

Regards,
Cédric Villemain

[1] http://www.postgresql.org/docs/8.4/static/xfunc-c.html#XFUNC-C-DYNLOAD

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2009-12-23 21:23:44 Re: Removing pg_migrator limitations
Previous Message Tom Lane 2009-12-23 21:15:44 Re: creating index names automatically?