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 1nTYgp-0005RA-Jd for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2022 00:35:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nTYgn-00026a-5Q for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2022 00:35:57 +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 1nTYgm-00026R-OU for pgsql-hackers@lists.postgresql.org; Mon, 14 Mar 2022 00:35:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nTYgj-0005XZ-Qg for pgsql-hackers@postgresql.org; Mon, 14 Mar 2022 00:35:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 22E0ZiJh084641; Sun, 13 Mar 2022 20:35:44 -0400 From: Tom Lane To: Andres Freund cc: Daniel Gustafsson , Greg Nancarrow , Ivan Panchenko , Teodor Sigaev , Ibrar Ahmed , vignesh C , Pavel Stehule , PostgreSQL Hackers , Amit Kapila , Masahiko Sawada Subject: Re: On login trigger: take three In-reply-to: <20220314000825.t7yywdubftb5cwl6@alap3.anarazel.de> References: <8F2FC11D-F0B4-41F2-BA7F-BA7F84DBF493@yesql.se> <20220312024652.lvgehszwke4hhove@alap3.anarazel.de> <20220313233350.mar5ix6cqmgaokta@alap3.anarazel.de> <81327.1647215828@sss.pgh.pa.us> <20220314000825.t7yywdubftb5cwl6@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 13 Mar 2022 17:08:25 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <84639.1647218144.1@sss.pgh.pa.us> Date: Sun, 13 Mar 2022 20:35:44 -0400 Message-ID: <84640.1647218144@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > I was thinking that the way to use it would be to specify it as a client > option. Like PGOPTIONS='-c ignore_event_trigger=login' psql. Ugh ... that would allow people (at least superusers) to bypass the login trigger at will, which seems to me to break a lot of the use-cases for the feature. I supposed we'd want this to be a PGC_POSTMASTER setting for security reasons. regards, tom lane