Re: Server-side hooks for user session start and session end - Mailing list pgsql-general

From Pavel Stehule
Subject Re: Server-side hooks for user session start and session end
Date
Msg-id CAFj8pRA5KWWPmeTKwFaG+o0XwKOYNwqHee1K1S0NzHOmdaAUQg@mail.gmail.com
Whole thread Raw
In response to Re: Server-side hooks for user session start and session end  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: Server-side hooks for user session start and session end
List 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

pgsql-general by date:

Previous
From: Nikolai Zhubr
Date:
Subject: Re: Server-side hooks for user session start and session end
Next
From: Nikolai Zhubr
Date:
Subject: Re: Server-side hooks for user session start and session end