pg.ddx.io pgsql-hackers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Sergey Shinderuk <s.shinderuk@postgrespro.ru>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Ivan Panchenko <wao@mail.ru>
Cc: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Nancarrow <gregn4422@gmail.com>
Cc: Teodor Sigaev <teodor@sigaev.ru>
Cc: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Cc: vignesh C <vignesh21@gmail.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: a.sokolov@postgrespro.ru
Subject: Re: On login trigger: take three
Date: Wed, 21 Sep 2022 16:29:12 +0300
Message-ID: <fa1a8256-e0b8-1da7-960c-d745a73e33e6@postgrespro.ru> (raw)
In-Reply-To: <F27FABD9-AC12-4729-8A2E-3B0E615BF78D@yesql.se>
References: <2E4E472A-69F8-4EAC-B337-3341AC2F0188@yesql.se>
<3378A73C-4441-43C7-B8F8-1B3611505524@yesql.se>
<20220328213125.omlbcyzngqztxnyi@alap3.anarazel.de>
<1648639288.568040808@f194.i.mail.ru>
<B4DCB4BA-6103-4D86-8AD4-D62BEBE6837F@yesql.se>
<fad05f5590d2b133af5eb81b728992e4@postgrespro.ru>
<3A419032-B266-4DD8-A6E8-F1EB1048B435@yesql.se>
<491AA22E-BA4A-46D0-852E-3784A8CC842E@yesql.se>
<66d83d70-ba5e-11a7-c5b6-a7ecddaf1281@postgrespro.ru>
<F27FABD9-AC12-4729-8A2E-3B0E615BF78D@yesql.se>
On 20.09.2022 17:10, Daniel Gustafsson wrote:
>> On 20 Sep 2022, at 15:43, Sergey Shinderuk <s.shinderuk@postgrespro.ru> wrote:
>> There is a race around setting and clearing of dathasloginevt.
>
> Thanks for the report! The whole dathasloginevt mechanism is IMO too clunky
> and unelegant to go ahead with, I wouldn't be surprised if there are other bugs
> lurking there.
Indeed.
CREATE DATABASE doesn't copy dathasloginevt from the template database.
ALTER EVENT TRIGGER ... ENABLE doesn't set dathasloginevt.
In both cases triggers are enabled according to \dy output, but don't
fire. The admin may not notice it immediately.
--
Sergey Shinderuk https://postgrespro.com/
view thread (171+ messages) latest in thread
Message-ID: <fa1a8256-e0b8-1da7-960c-d745a73e33e6@postgrespro.ru> Permalink: ../fa1a8256-e0b8-1da7-960c-d745a73e33e6@postgrespro.ru/ Also on: postgresql.org/message-id/fa1a8256-e0b8-1da7-960c-d745a73e33e6@postgrespro.ru ·
reply
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-hackers@postgresql.org Cc: s.shinderuk@postgrespro.ru, daniel@yesql.se, wao@mail.ru, andres@anarazel.de, tgl@sss.pgh.pa.us, gregn4422@gmail.com, teodor@sigaev.ru, ibrar.ahmad@gmail.com, vignesh21@gmail.com, pavel.stehule@gmail.com, amit.kapila16@gmail.com, sawada.mshk@gmail.com, a.sokolov@postgrespro.ru Subject: Re: On login trigger: take three In-Reply-To: <fa1a8256-e0b8-1da7-960c-d745a73e33e6@postgrespro.ru> References: <2E4E472A-69F8-4EAC-B337-3341AC2F0188@yesql.se> <3378A73C-4441-43C7-B8F8-1B3611505524@yesql.se> <20220328213125.omlbcyzngqztxnyi@alap3.anarazel.de> <1648639288.568040808@f194.i.mail.ru> <B4DCB4BA-6103-4D86-8AD4-D62BEBE6837F@yesql.se> <fad05f5590d2b133af5eb81b728992e4@postgrespro.ru> <3A419032-B266-4DD8-A6E8-F1EB1048B435@yesql.se> <491AA22E-BA4A-46D0-852E-3784A8CC842E@yesql.se> <66d83d70-ba5e-11a7-c5b6-a7ecddaf1281@postgrespro.ru> <F27FABD9-AC12-4729-8A2E-3B0E615BF78D@yesql.se> <fa1a8256-e0b8-1da7-960c-d745a73e33e6@postgrespro.ru> * 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