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: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Nancarrow <gregn4422@gmail.com>
Cc: Ivan Panchenko <wao@mail.ru>
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: Mon, 28 Mar 2022 15:57:37 +0300
Message-ID: <20798fcd14615193ce31005ca6c40ef2@postgrespro.ru> (raw)
In-Reply-To: <6E81EF7F-2FD0-4E8F-A1B2-465EA39F2876@yesql.se>
References: <20220312024652.lvgehszwke4hhove@alap3.anarazel.de>
	<E0D5DC61-C490-45BD-A984-E8D56493EC4F@yesql.se>
	<20220313233350.mar5ix6cqmgaokta@alap3.anarazel.de>
	<81327.1647215828@sss.pgh.pa.us>
	<20220314000825.t7yywdubftb5cwl6@alap3.anarazel.de>
	<2E4E472A-69F8-4EAC-B337-3341AC2F0188@yesql.se>
	<20220314161049.eybdzhwdrcn5s5zc@alap3.anarazel.de>
	<D919E528-FA84-4094-9468-E53DB27CF4BB@yesql.se>
	<36a32ebce64ad85fd6e07edcdcda09f4@postgrespro.ru>
	<8157002C-02DB-4AC8-BC36-E7FE4604E1E0@yesql.se>
	<20220322024844.gpg3kl23mqvoncn2@alap3.anarazel.de>
	<6E81EF7F-2FD0-4E8F-A1B2-465EA39F2876@yesql.se>

Daniel Gustafsson писал 2022-03-22 11:43:
>> On 22 Mar 2022, at 04:48, Andres Freund <andres@anarazel.de> wrote:
> 
>> docs fail to build: 
>> https://cirrus-ci.com/task/5556234047717376?logs=docs_build#L349
> 
> Ugh, that one was on me and not the original author. Fixed.
> 

+    data initialization. It is vital that any event trigger using the
+    <literal>login</literal> event checks whether or not the database 
is in
+    recovery.

Does any trigger really have to contain a pg_is_in_recovery() call? In 
this message 
(https://www.postgresql.org/message-id/20220312024652.lvgehszwke4hhove%40alap3.anarazel.de) 
it was only about triggers on hot standby, which run not read-only 
queries

-- 
Andrey Sokolov
Postgres Professional: http://www.postgrespro.com





view thread (171+ messages)  latest in thread

Message-ID: <20798fcd14615193ce31005ca6c40ef2@postgrespro.ru>
Permalink:  ../20798fcd14615193ce31005ca6c40ef2@postgrespro.ru/
Also on:    postgresql.org/message-id/20798fcd14615193ce31005ca6c40ef2@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, andres@anarazel.de, tgl@sss.pgh.pa.us, gregn4422@gmail.com, wao@mail.ru, 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: <20798fcd14615193ce31005ca6c40ef2@postgrespro.ru>
  References: <20220312024652.lvgehszwke4hhove@alap3.anarazel.de> <E0D5DC61-C490-45BD-A984-E8D56493EC4F@yesql.se> <20220313233350.mar5ix6cqmgaokta@alap3.anarazel.de> <81327.1647215828@sss.pgh.pa.us> <20220314000825.t7yywdubftb5cwl6@alap3.anarazel.de> <2E4E472A-69F8-4EAC-B337-3341AC2F0188@yesql.se> <20220314161049.eybdzhwdrcn5s5zc@alap3.anarazel.de> <D919E528-FA84-4094-9468-E53DB27CF4BB@yesql.se> <36a32ebce64ad85fd6e07edcdcda09f4@postgrespro.ru> <8157002C-02DB-4AC8-BC36-E7FE4604E1E0@yesql.se> <20220322024844.gpg3kl23mqvoncn2@alap3.anarazel.de> <6E81EF7F-2FD0-4E8F-A1B2-465EA39F2876@yesql.se> <20798fcd14615193ce31005ca6c40ef2@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