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 1pjyE9-00033x-TG for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2023 08:10:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pjyE8-0003yN-JO for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2023 08:10:44 +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 1pjyE8-0003yE-A6 for pgsql-hackers@lists.postgresql.org; Wed, 05 Apr 2023 08:10:44 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pjyE6-0001kH-0I for pgsql-hackers@lists.postgresql.org; Wed, 05 Apr 2023 08:10:43 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 471A73200962; Wed, 5 Apr 2023 04:10:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 05 Apr 2023 04:10:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1680682239; x=1680768639; bh=b4 f6YZiFxO0qn60qxk6fjhlLef9zFRmZOc0JjzLBQcE=; b=BhPKcivn75AkWYi0kq zlcberARJ2UniVC8IVRZJ6nDvuuwv1/Z88eaXVlgbUKXQQtwuOilqRUiQ2bv+3xS TzMm5RCL/Hr/vsOY2mk/lIL3bGqTeS6uG4Thq+8w2yyueb3V9KWXTOrYQRMlC5ce qJEPQp9IC+UF/fC4EnMUutjcCIg+iYRoNPi+qMz2e17ct/S6wRTV4duf0nOdzD/h dMO/PRlyLLjC1N/JtLKi/w+B39A0bZ/dDFSuKSDOhykVPG6N7TVOm1F/lOnNH5H7 z7wbvkdKK5vnG0fvQDxWTrail5FTeV2/qQjh4S/R2eODbtCkja1iAgDFsgs8mNod 2kHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1680682239; x=1680768639; bh=b4f6YZiFxO0qn 60qxk6fjhlLef9zFRmZOc0JjzLBQcE=; b=XO/l0PTgySqeyOCrCd/wedvS0O81L tLGP+BfvH+ah9Rbf/MhTehPAT1MaqLKtoghy8wQu79OUZpKLgx40wW9+3rY4NOB7 z+ndUvFMrZZrdmOfXALiiD95Pl08FM7ZqzGYvs//oXyEVMUWWNwE05m0YK5djy0Y np/yzGFFmmMyqX4NeZKlh5JWtBFBZKXFtxC2O3/q4mMESgiah3a/zfwI3sjcAqMx Y9Hq16erVIdPufAH5voaSTtIiItZK+DivIAn0/qoLsPQAh/DVE7PYQ6gw2JfyGCB I0avquaC7nFLt+/FtWpmu6vSAEYjPVwY0iKHpAtYDdH+AB44dw+SEjGNQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdejuddgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 5 Apr 2023 04:10:37 -0400 (EDT) Date: Wed, 5 Apr 2023 17:10:32 +0900 From: Michael Paquier To: Daniel Gustafsson Cc: Robert Haas , Justin Pryzby , Mikhail Gribkov , pgsql-hackers@lists.postgresql.org Subject: Re: GUC for temporarily disabling event triggers Message-ID: 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+K+4B5P1RAEUswQi" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --+K+4B5P1RAEUswQi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 03, 2023 at 11:35:14PM +0200, Daniel Gustafsson wrote: > Yeah. The patch as it stands allow for disabling specific types rather than > all-or-nothing, which is why the name was "ignore". FWIW, I agree with Robert's points here: - disable_event_triggers or ignore_event_triggers = off leads to a double-negative meaning, which is a positive. Depending on one's native language that can be confusing. - 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. A few days before the end of the commit fest, perhaps you'd better head towards having only an event_trigger = on | off or all | none and consider expanding that later on? From what I get at the top of the thread, this would satisfy the main use case you seemed to worry about to begin with. -- Michael --+K+4B5P1RAEUswQi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmQtLPgACgkQnvQgOdby QH0yxg//al8jgsPqPABtDkRF5M4YWAt+wFcn6K/MHBHooSSLSuovJLiF57ysqOGx jjqOndHg6ue0HtApYbYowZ9UDx77+nS7qeWnEmxQgkM5bmu4OgEx9nsT2M0UxzuW nheuCcRIRhFb0gUWhiEB6Zv0ZIZFcz7HQ/68KMzI4LyR/a/WfJK0GyySEp6xI4qV H/E31yfVgKqJ7fTzIy3EHDblyF1at9opfAH4ZBg7gjHLjx9My8FF8Qyri2Sb7ajl jKx5dqXBtUCs/ulDhJ7hJSTH4JJcM3kN9G5OXQcRQqOopNzg5GnC1u/q7Smz1hTU LtRcuF6dGIvKm9X3LDjgKJBN+ifkGJ/nIvmlciNmfWQxsAXRcbi6ZqdBmqCQxW0y hyiQyv8hTwTkeNtOdus8qLyy792V8QtDtCb7G1aSGovvCQABwsn6nuc76b09K9g5 our0r87ouXUJK0bAA/rDz88oBxAYuy2Ib817sOugC1VDioqqQzYNgXSWDC6h0U8H E6CJHbBtJTy51OHj9ySStUjsA1kJCef7FWkrzEriZFQFokSwqdm2+wOpc0PR+JE5 Y/gWjbrlTq8OF8qyFCPbdfMed2KHpmuVDDV03PVYOBak65k+K2NHiCPYBp+8DHgd LrStuy/yHkVJ4b8OtdPWX4K2xz6kwH7UM6Poy7LfPAelk+Aagb0= =K3id -----END PGP SIGNATURE----- --+K+4B5P1RAEUswQi--