From: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
---|---|
To: | Alexander Lakhin <exclusion(at)gmail(dot)com> |
Cc: | Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Mikhail Gribkov <youzhick(at)gmail(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Robert Haas <robertmhaas(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Greg Nancarrow <gregn4422(at)gmail(dot)com>, Ivan Panchenko <wao(at)mail(dot)ru>, Teodor Sigaev <teodor(at)sigaev(dot)ru>, Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
Subject: | Re: On login trigger: take three |
Date: | 2024-01-15 09:05:26 |
Message-ID: | 71349E03-BCF3-4C38-B60B-481EFCEB38EE@yesql.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> On 13 Jan 2024, at 17:00, Alexander Lakhin <exclusion(at)gmail(dot)com> wrote:
> DROP EVENT TRIGGER olt;
> SELECT dathasloginevt FROM pg_database WHERE datname= current_database();
> dathasloginevt
> ----------------
> t
> (1 row)
>
> Although after reconnection (\c, as done in the event_trigger_login test),
> this query returns 'f'.
This is by design in the patch. The flag isn't changed on DROP, it is only
cleared on logins iff there is no login event trigger. The description in the
docs is worded to indicate that it shouldn't be taken as truth for monitoring
purposes:
"This flag is used internally by PostgreSQL and should not be manually
altered or read for monitoring purposes."
--
Daniel Gustafsson
From | Date | Subject | |
---|---|---|---|
Next Message | Hayato Kuroda (Fujitsu) | 2024-01-15 09:09:32 | RE: Documentation to upgrade logical replication cluster |
Previous Message | Jelte Fennema-Nio | 2024-01-15 09:01:59 | Re: Add PQsendSyncMessage() to libpq |