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 1ml6pM-0000T6-FP for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Nov 2021 09:57:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ml6pL-00089Z-BE for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Nov 2021 09:57:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ml6pL-00089Q-23 for pgsql-hackers@lists.postgresql.org; Thu, 11 Nov 2021 09:57:03 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ml6pG-0008Vc-UF for pgsql-hackers@postgresql.org; Thu, 11 Nov 2021 09:57:02 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id E66832EA42EE for ; Thu, 11 Nov 2021 10:56:56 +0100 (CET) Received: from s645.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id D0A6E2E2E7C6; Thu, 11 Nov 2021 10:56:56 +0100 (CET) Received: from s898.loopia.se (unknown [172.22.191.5]) by s645.loopia.se (Postfix) with ESMTP id AE2441577878; Thu, 11 Nov 2021 10:56:56 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s899.loopia.se ([172.22.191.6]) by s898.loopia.se (s898.loopia.se [172.22.190.17]) (amavisd-new, port 10024) with LMTP id N5W2V-rzONPn; Thu, 11 Nov 2021 10:56:56 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from [192.168.72.144] (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s899.loopia.se (Postfix) with ESMTPSA id 2170D2C92828; Thu, 11 Nov 2021 10:56:56 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: On login trigger: take three From: Daniel Gustafsson In-Reply-To: Date: Thu, 11 Nov 2021 10:56:55 +0100 Cc: Ivan Panchenko , Teodor Sigaev , Ibrar Ahmed , Konstantin Knizhnik , vignesh C , Pavel Stehule , PostgreSQL Hackers , Amit Kapila , Masahiko Sawada Content-Transfer-Encoding: quoted-printable Message-Id: <8F2FC11D-F0B4-41F2-BA7F-BA7F84DBF493@yesql.se> References: <0d46d29f-4558-3af9-9c85-7774e14a7709@postgrespro.ru> <9c897136-4755-dcfc-2d24-b12bcfe4467f@sigaev.ru> <1635956118.223627975@f495.i.mail.ru> <8E2D5874-49BD-4D4F-8F76-3D3984AA478D@yesql.se> To: Greg Nancarrow X-Mailer: Apple Mail (2.3608.120.23.2.7) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 11 Nov 2021, at 07:37, Greg Nancarrow wrote: > I've attached an updated patch, that essentially reinstates the v19 > patch Thanks! I've only skimmed it so far but it looks good, will do a more = thorough review soon. + This flag is used to avoid extra lookups on the = pg_event_trigger table during each backend startup. This should be pg_event_trigger. Sorry, missed = that one at that last read-through. > - dathaslogintriggers -> dathasloginevttriggers flag rename (too > long?) I'm not crazy about this name, "evt" is commonly the abbreviation of = "event trigger" (used in evtcache.c etc) so "dathasloginevt" would IMO be = better. That being said, that's still not a very readable name, maybe someone = else has an even better suggestion? -- Daniel Gustafsson https://vmware.com/