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 1pk86E-0006SS-NM for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2023 18:43:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pk86C-0006o8-Nk for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2023 18:43:12 +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 1pk86C-0006nz-EF for pgsql-hackers@lists.postgresql.org; Wed, 05 Apr 2023 18:43:12 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pk869-0016B6-UK for pgsql-hackers@lists.postgresql.org; Wed, 05 Apr 2023 18:43:11 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 0DF712F51546 for ; Wed, 5 Apr 2023 20:43:09 +0200 (CEST) Received: from s934.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id F31582E2A038; Wed, 5 Apr 2023 20:43:08 +0200 (CEST) Received: from s475.loopia.se (unknown [172.22.191.5]) by s934.loopia.se (Postfix) with ESMTP id EB4277CEA64; Wed, 5 Apr 2023 20:43:08 +0200 (CEST) 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 s934.loopia.se ([172.22.191.6]) by s475.loopia.se (s475.loopia.se [172.22.190.15]) (amavisd-new, port 10024) with LMTP id k2hz5fT-8c6z; Wed, 5 Apr 2023 20:43:08 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s934.loopia.se (Postfix) with ESMTPSA id 6623A7CEA52; Wed, 5 Apr 2023 20:43:08 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Re: GUC for temporarily disabling event triggers From: Daniel Gustafsson In-Reply-To: Date: Wed, 5 Apr 2023 20:43:07 +0200 Cc: Michael Paquier , Justin Pryzby , Mikhail Gribkov , pgsql-hackers@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <7781ABFD-D273-4CC8-A4D6-BC6ABB111058@yesql.se> References: <9140106E-F9BF-4D85-8FC8-F2D3C094A6D9@yesql.se> <167482801126.1114.1095311628314619931.pgcf@coridan.postgresql.org> <8D26ACC2-7669-460D-833A-582EAD6CC09E@yesql.se> <54E8A181-D611-4581-9CC4-62188D1379C4@yesql.se> <1FF33910-88DB-43B6-AA77-4D04804289FC@yesql.se> To: Robert Haas X-Mailer: Apple Mail (2.3696.120.41.1.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 5 Apr 2023, at 16:30, Robert Haas wrote: >=20 > On Wed, Apr 5, 2023 at 4:57=E2=80=AFAM Daniel Gustafsson = wrote: >>> - Being able to write a list of event triggers working would be much >>> more interesting than just individual elements. >>> - There may be an argument for negated patterns? Say, >>> a "!sql_drop,!ddl_command_start" would cause sql_drop and >>> ddl_command_start to be disabled with all the others enabled, and = one >>> should not ne able to mix negated and non-negated patterns. >>=20 >> I'm not convinced that it's in our interest to offer a GUC to = configure the >> cluster by selectively turning off SQL features. The ones we have = for planner >> tuning which is a different beast. At the very least it should be in = a thread >> covering that topic, as it might be a bit hidden here. >=20 > But, isn't that exactly what you're proposing? Yeah, but it didn't really strike me until after typing and sending that = email. > I mean if this was just event_triggers =3D on | off it would be = exactly > like row_security and as far as I'm concerned there would be nothing > to debate. Which is what v1-v3 did until I changed it based on review input, but I = agree with the reasoning here so will revert back (with some internal changes = too). Moving this to the next CF for another stab at it when the tree = re-opens. -- Daniel Gustafsson