pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: a.sokolov@postgrespro.ru
To: Daniel Gustafsson <daniel@yesql.se>
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: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>
Subject: Re: On login trigger: take three
Date: Fri, 01 Apr 2022 10:16:04 +0300
Message-ID: <fad05f5590d2b133af5eb81b728992e4@postgrespro.ru> (raw)
In-Reply-To: <B4DCB4BA-6103-4D86-8AD4-D62BEBE6837F@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>

Daniel Gustafsson писал 2022-03-30 16:48:
>> On 30 Mar 2022, at 13:21, Ivan Panchenko <wao@mail.ru> 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





view thread (171+ messages)  latest in thread

Message-ID: <fad05f5590d2b133af5eb81b728992e4@postgrespro.ru>
Permalink:  ../fad05f5590d2b133af5eb81b728992e4@postgrespro.ru/
Also on:    postgresql.org/message-id/fad05f5590d2b133af5eb81b728992e4@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: a.sokolov@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
  Subject: Re: On login trigger: take three
  In-Reply-To: <fad05f5590d2b133af5eb81b728992e4@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>

* 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