Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1soaL5-00CKvS-9E for pgsql-docs@arkaria.postgresql.org; Thu, 12 Sep 2024 03:17:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1soaL4-00Ds63-Qv for pgsql-docs@arkaria.postgresql.org; Thu, 12 Sep 2024 03:17:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1soaL4-00Ds5v-In for pgsql-docs@lists.postgresql.org; Thu, 12 Sep 2024 03:17:46 +0000 Received: from fout5-smtp.messagingengine.com ([103.168.172.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1soaL1-000kNU-00 for pgsql-docs@lists.postgresql.org; Thu, 12 Sep 2024 03:17:45 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id D008D1380155; Wed, 11 Sep 2024 23:17:42 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Wed, 11 Sep 2024 23:17:42 -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:subject :subject:to:to; s=fm1; t=1726111062; x=1726197462; bh=HkCKWf2CG9 0ZSh0/BQGak+g9kp8RL3kxNnJUIiZErp0=; b=gtZuWzp1+ZXlTi8j/2mJGCfP5K w56bFyT5dV6Z9pKD3NMKPLR8OUTUgvfVlW81nbr6HZpuAuevfG0jfLifB6Hh4WLx 12UcbWwCgElT97QQPqbN1psXsonv+VO6dH512Xw/j9UgbR//v778NXnXk8522B6B Z8R2R77bIH8SUJaAZktzCeE6qsuOTP2nIboG9dW5njcxXJLHpVbgwk5fA/+Ag7Xz 6SamyoLE6gzYguH0lTWMjyHM9+cpNbFNJY2Cmd0V643xQHVLSENx2UHd8iFjzKHa Frge6EnhKV24pflD0pwvKi+6s0+SUTRsOlGh7NHP4fkcvL+pGBLFrURoPBKg== 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:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1726111062; x=1726197462; bh=HkCKWf2CG90ZSh0/BQGak+g9kp8R L3kxNnJUIiZErp0=; b=dVkSyWuMf9c9kRbZnAIoWJr0B1FGuHtputCBVHhW8PVt Tvz83oaeISoxZB9akAsQmiAJTXTEKyBjnDhch+6aKxwLl/m+X6uX5B4SF0jnpgNI FhsZJdV8KtQT3I1fjOPzOGewbKtYKDn93hmZ4AJyYEzbYIeY30Ty6KpOtnP27crq QxdR2aVvNhZVHEtkVXy+tjCNxyCszdCzk9PqvVIOBjWhnx48QDYjHIh+CpqCT1Qr mJIC73kv+fiI5hyeIXolj2fo3hDe1wRA+fCT4ABiPHT4YN3g92JX+RdxgwQysxGz eq9Kdz5aAPGgwlXSN9lEomV4hpnSS/AB633nwlAUUA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudejvddgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhf gggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruc eomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteel ieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohephhhtrghmfhhiughssehgmhgrihhlrdgtohhmpdhrtghpthhtohep lhgruhhrvghniidrrghlsggvsegthigsvghrthgvtgdrrghtpdhrtghpthhtohepphhgsh hqlhdqughotghssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Sep 2024 23:17:41 -0400 (EDT) Date: Thu, 12 Sep 2024 12:17:28 +0900 From: Michael Paquier To: Greg Sabino Mullane Cc: Laurenz Albe , pgsql-docs Subject: Re: Table rewrite supporting functions for event triggers Message-ID: References: <718fcf4a067b576b501bd5b18b54a1fdc4fda639.camel@cybertec.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pixmfEjAvWsFRK8W" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --pixmfEjAvWsFRK8W Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 11, 2024 at 10:14:27AM -0400, Greg Sabino Mullane wrote: > I dunno - so would we smush them together and return something like: >=20 > "ALTER_PERSISTENCE and COLUMN_REWRITE" If multiple are set, let's just make it text[], then. > That would be a step backwards for anyone possibly using that integer > programatically to (for example) give a pretty user-facing message about > why the event was triggered. I don't know either how much people are relying on these numbers in applications. If this is like what we do in the regression tests and print it in notice messages within a PL/pgSQL function, that's not going to matter. Or just have a separate function.. Do you have a comment about mentioning the variables or the header in the docs for the stable branches? I'm aware that this is a rare practice, but so is this function's design. My argument is greppability between the code and the docs, mainly, to not miss an update of the docs if more reasons are added. That would be unlikely, but a backpatch of a reason is not impossible ABI-wise. -- Michael --pixmfEjAvWsFRK8W Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmbiXUgACgkQnvQgOdby QH1+NA//fuxF6Cb2vROPIPJ/T7kQR4MYZYYHpmwD7v40gNebDqgS3aJwZQKL09Xt 03mYRk394JKtQnMYOtH/FlmeugF8459tUcQRC7/HuL16nFJNpp3d9mF6iumGM9Pt 41KvAZidUP0YjICioIXopLlT9Jku9KiKU34BRpmRjl7b/LEH7q15+Yodueh9cEYo boFewtujscpH47dNjQ6+a/kWaAzNrnye4ml+JtY3tiwNJZPQdugzuWVCoRVKgs3Z qUkyxrKgTeDc4ptSxNAxYnpD/N6rqHEuU3QmXDAyyah6LG+v4hQP4lL8q92EnUeQ 3VbQuPw6rxZy/ZSYD5xlrEi1Fq9GcSXNJ8RZ2p4zTulN1UHdoDdbguidXaMbxMPE EEAg4UwRwyuZ8SOxh54VKJIDSfsp+hK+sKScsipf5MWE1K8znnrPh3pZphImxpaR kctPGNKSjSqBM7kYW9Yf2fqQYyVKdvGoW8QlgApyJh4j5RzOByCOh/L9vIEMgUkU /s10MRiz+ex2wyEplcnxDdHpb0qfHxVi9pfp329qJJe+Zntz0FeWlB5xmQtjMs/P HIm+Yi6fXL7KQrKg/m2yLRdnzKaPty/lrXdZUCsmIjy+4QRt7NwLhm5bM4hmEZQe 5otOaxhaIKMs9ipXw6M5tlyu+lriMNJ5mwiTZP1/zFtobGRyUWM= =aVGh -----END PGP SIGNATURE----- --pixmfEjAvWsFRK8W--