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

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Nikolai Zhubr <n-a-zhubr(at)yandex(dot)ru>
Cc: 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:41:01
Message-ID: CAFj8pRASe+N_bwgwd8Dm1=sM8HRQiwZghf8p6WDEEhHxWLs+cQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2015-09-27 22:51 GMT+02:00 Nikolai Zhubr <n-a-zhubr(at)yandex(dot)ru>:

> 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)
>

This point can be too late. Probably it is good enough for releasing
external sources, but the query execution engine can be broken in this
moment ~ you cannot to run any SQL

Not tested

Regards

Pavel

> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nikolai Zhubr 2015-09-27 20:51:58 Re: Server-side hooks for user session start and session end
Previous Message Pavel Stehule 2015-09-27 20:37:00 Re: Server-side hooks for user session start and session end