Re: Server-side hooks for user session start and session end

From: Nikolai Zhubr <n-a-zhubr(at)yandex(dot)ru>
To: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Server-side hooks for user session start and session end
Date: 2015-09-27 20:51:58
Message-ID: 560856EE.9040309@yandex.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
27.09.2015 22:59, Pavel Stehule:
>
> 2015-09-27 21:40 GMT+02:00 Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com
> <mailto:Jim(dot)Nasby(at)bluetreble(dot)com>>:
>
> _PG_fini
>
>
> It should not work - see a doc

I'd rather consider registering with on_shmem_exit -- as per the
insightfull note placed in postgresql.c:4290.
(Haven't tried - just thinking)

Thank you,
Nikolai

> If the file includes a function named |_PG_fini|, that function will be
> called immediately before unloading the file. Likewise, the function
> receives no parameters and should return void. 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.)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nikolai Zhubr 2015-09-27 21:00:15 Re: Server-side hooks for user session start and session end
Previous Message Pavel Stehule 2015-09-27 20:41:01 Re: Server-side hooks for user session start and session end