| From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Nikolai Zhubr <n-a-zhubr(at)yandex(dot)ru>, "pgsql-general(at)postgresql(dot)org >> 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 05:29:39 |
| Message-ID: | CAFj8pRA5KWWPmeTKwFaG+o0XwKOYNwqHee1K1S0NzHOmdaAUQg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
>
>> > years ago I tried it, if I remember well. I had a problems with SPI
>> calls,
>> > because some caches was not initialized. I am not sure, and I didn't
>> test
>> > last time.
>>
>> You'd have to start your own transaction if you wanted one, and any
>> uncaught error would effectively be FATAL because it would terminate the
>> session, but otherwise I don't see why that wouldn't work.
>>
>
> Probably I didn't start transaction.
>
> I'll check it.
>
It is working. Patch attached
Regards
Pavel
| Attachment | Content-Type | Size |
|---|---|---|
| session_exec.patch | text/x-patch | 3.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nikolai Zhubr | 2015-09-27 11:33:16 | Re: Server-side hooks for user session start and session end |
| Previous Message | Nikolai Zhubr | 2015-09-27 00:12:18 | Re: Server-side hooks for user session start and session end |