From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: pgsql-admin@lists.postgresql.org
Subject: Re: How to enable Logon Trigger in postgres?
Date: Tue, 21 Aug 2018 22:58:48 +1200
Message-ID: <b2996173-c918-7272-16a1-16afa6de22bd@catalyst.net.nz> (raw)
In-Reply-To: <1534830364258-0.post@n3.nabble.com>
References: <1534758116021-0.post@n3.nabble.com>
<CAGDYbUPpniSJ5F5wKSF+awQHSoUWP+hahdu88Ju3Weehprs=Dw@mail.gmail.com>
<1534763276887-0.post@n3.nabble.com>
<CAEtnbpXhk6N8_UozWpibwtfMuYHt7agvmexMBLYt7vUAXgkZ+g@mail.gmail.com>
<1534830364258-0.post@n3.nabble.com>
On 21/08/18 17:46, pavan95 wrote:
> Hi all,
>
> Thanks for your responses. But to my wonder why can't these logon, logout be
> events for a postgres instance. If they are like any other
> INSERT/UPDATE/DELETE we can go with the triggers(logon trigger like in SQL
> server).
>
> It will be great if postgres 11 includes this feature in its native release.
>
>
It is certainly *possible*. But right now the event matrix - described here:
https://www.postgresql.org/docs/10/static/event-trigger-matrix.html
does *not* include logon/logoff events. Given that 11 is just about to
be released, it won't include such a feature either. Now just to be
clear, what you are asking for makes sense - having direct access to
logon events rather than scraping the log file after then event - is a
nice idea...we just don't have a patch to do that for version 11 (or 12)
right now.
regards
Mark
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mark.kirkwood@catalyst.net.nz
Subject: Re: How to enable Logon Trigger in postgres?
In-Reply-To: <b2996173-c918-7272-16a1-16afa6de22bd@catalyst.net.nz>
References: <1534758116021-0.post@n3.nabble.com> <CAGDYbUPpniSJ5F5wKSF+awQHSoUWP+hahdu88Ju3Weehprs=Dw@mail.gmail.com> <1534763276887-0.post@n3.nabble.com> <CAEtnbpXhk6N8_UozWpibwtfMuYHt7agvmexMBLYt7vUAXgkZ+g@mail.gmail.com> <1534830364258-0.post@n3.nabble.com> <b2996173-c918-7272-16a1-16afa6de22bd@catalyst.net.nz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox