Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1naBX8-0005b6-0U for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Apr 2022 07:17:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1naBX6-0007BC-U5 for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Apr 2022 07:17:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1naBVz-0003C6-RZ for pgsql-hackers@lists.postgresql.org; Fri, 01 Apr 2022 07:16:11 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1naBVu-0004Cy-Sn for pgsql-hackers@postgresql.org; Fri, 01 Apr 2022 07:16:10 +0000 Received: from mail.postgrespro.ru (cyclops.postgrespro.ru [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 329AD21C2F50; Fri, 1 Apr 2022 10:16:04 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1648797364; bh=o4odmqYcrdbndHwwGZzVUvpebPeo7NieFwUwkqp3pZw=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=qGcPyf7ZflSHCpvX8v4INao8n49cLJFg1fZvvqIRMLst4qq5jNZexDwVvcUbGkJTp HooJPINkNUsBHbecSjY31BcVzWs1KghFkzv2fmR50NkNH2U7rBe68ZQ7b3g2n8LoHT 5y7LdcXwdNrhMPdBXKLEOOUm4VQtLuq+1MP3UWVM= MIME-Version: 1.0 Date: Fri, 01 Apr 2022 10:16:04 +0300 From: a.sokolov@postgrespro.ru To: Daniel Gustafsson Cc: Ivan Panchenko , Andres Freund , Tom Lane , Greg Nancarrow , Teodor Sigaev , Ibrar Ahmed , vignesh C , Pavel Stehule , PostgreSQL Hackers , Amit Kapila , Masahiko Sawada Subject: Re: On login trigger: take three In-Reply-To: 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> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: a.sokolov@postgrespro.ru Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Daniel Gustafsson писал 2022-03-30 16:48: >> On 30 Mar 2022, at 13:21, Ivan Panchenko wrote: >> Maybe side-effects is a bit too general? Emitting a log message, >> rejecting a >> login, setting some GUCs, etc are all side-effects too. >> Something like this: > > I've reworded the docs close to what you suggested here. > >> Also, please fix a typo in doc/src/sgml/ref/create_event_trigger.sgml >> : > > Done. > >> Regarding the trigger function example: >> It does not do anything if run on a standby. To show that it can do >> something on a standby to, I propose to move throwing the night >> exception to the beginning. > > Good idea, done. > >> Finally, let me propose to append to the regression test the >> following: > > Also a good idea, done. > > -- > Daniel Gustafsson https://vmware.com/ Please fix a typo in doc/src/sgml/event-trigger.sgml: "precvent" -- Andrey Sokolov Postgres Professional: http://www.postgrespro.com