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 1r5JxF-00Cy0N-Ug for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Nov 2023 06:09:50 +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 1r5JxD-00DeCj-U9 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Nov 2023 06:09:47 +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 1r5JxC-00De83-9w for pgsql-hackers@lists.postgresql.org; Tue, 21 Nov 2023 06:09:47 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r5Jx8-007YSk-IU for pgsql-hackers@lists.postgresql.org; Tue, 21 Nov 2023 06:09:45 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A0C443200F41 for ; Tue, 21 Nov 2023 01:09:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 21 Nov 2023 01:09:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1700546978; x=1700633378; bh=LdscAU4zoSqYftZOlr2D08xga q3l5eRD/GzfQRtrXBo=; b=mTdplUn9LVb68mUwpQAa9emueTRmtmMlGCutWOnzt 4sEDirlEz8xEdQZifJvV9BK5Xn0ZhMzma+S8S3Txk0CYZjqZWBAABLOEQRyFkump Av4BIPh7no4M0CbwEnCO9GyTl13K4RSiPz4hMJpVA5Y3tVYHHFoQ1BrmGpw8C04f 3K8kajOvEZG7rTM62/qB8TdE/pKZQ6S6J6zCqaS6ObZp47DttCwiS9BYuILVFx1Y DTZGM5CuvkbBF3nCQd3ptvWFdShKHL+4zOpzzUW8tLD4abmFAmywJxjFNvjht5zo mSZOXVItC8jL4cKPlFp9eeU17KojyBuOtpIiVky1x6DBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1700546978; x=1700633378; bh=LdscAU4zoSqYftZOlr2D08xgaq3l5eRD/Gz fQRtrXBo=; b=oJsIB+s7oe+C8jyWU1Pz32Bezp9d8VYvpYLhjNEDUZpmOxvWKuF SFIkI24HYj7cFf0TJiPq9yEnM0V1fmYvVG+GXc4+Yy46RkQ8bgkCY0/e/2TO/3JK jaBNqEHMN1l5Ym7GXj1/CwLUy3LhGs/yd69qwnYXj9Zif66eK8DU3haSLvcmmYwF nLVXZWTyRJFLUjpBVrTcspzccoa4AC+74JxnRdwGZ3T8OsRqVKF7xtwhEAsL6HcQ 0HpskE2S8pHDJgnkhPd3nFF2KHxGjWZUpeaULGmyt4j0LiRFK6n9yyAh56PmjJap FWMwEmaW9WH+eeIhia5uvf4PnzGiMTQPxBA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudegkedgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkgggtugesghdtroertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeeiffeijeeigfduudegtdekteduheei hfduudefudfggfeulefftedtjeejfeevteenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 21 Nov 2023 01:09:37 -0500 (EST) Date: Tue, 21 Nov 2023 15:09:20 +0900 From: Michael Paquier To: Postgres hackers Subject: Typo with amtype = 's' in opr_sanity.sql Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Y1lLLxQ5r4Syo4Ql" Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Y1lLLxQ5r4Syo4Ql Content-Type: multipart/mixed; boundary="U89T2T5DbuN0UWFa" Content-Disposition: inline --U89T2T5DbuN0UWFa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, While rebasing a patch from 2016 related to sequence AMs (more about that later), I've bumped on a mistake from 8586bf7ed888 in opr_sanity.sql, as of: +SELECT p1.oid, p1.amname, p2.oid, p2.proname +FROM pg_am AS p1, pg_proc AS p2 +WHERE p2.oid = p1.amhandler AND p1.amtype = 's' AND It seems to me that this has been copy-pasted on HEAD from the sequence AM patch, but forgot to update amtype to 't'. While that's maybe cosmetic, I think that this could lead to unexpected results, so perhaps there is a point in doing a backpatch? Thoughts? -- Michael --U89T2T5DbuN0UWFa Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="opr-sanity-amtype.patch" Content-Transfer-Encoding: quoted-printable diff --git a/src/test/regress/expected/opr_sanity.out b/src/test/regress/ex= pected/opr_sanity.out index 7a6f36a6a9..7610b011d6 100644 --- a/src/test/regress/expected/opr_sanity.out +++ b/src/test/regress/expected/opr_sanity.out @@ -1920,7 +1920,7 @@ WHERE p1.oid =3D a1.amhandler AND a1.amtype =3D 'i' A= ND -- Check for table amhandler functions with the wrong signature SELECT a1.oid, a1.amname, p1.oid, p1.proname FROM pg_am AS a1, pg_proc AS p1 -WHERE p1.oid =3D a1.amhandler AND a1.amtype =3D 's' AND +WHERE p1.oid =3D a1.amhandler AND a1.amtype =3D 't' AND (p1.prorettype !=3D 'table_am_handler'::regtype OR p1.proretset OR p1.pronargs !=3D 1 diff --git a/src/test/regress/sql/opr_sanity.sql b/src/test/regress/sql/opr= _sanity.sql index e2d2c70d70..2fe7b6dcc4 100644 --- a/src/test/regress/sql/opr_sanity.sql +++ b/src/test/regress/sql/opr_sanity.sql @@ -1223,7 +1223,7 @@ WHERE p1.oid =3D a1.amhandler AND a1.amtype =3D 'i' A= ND =20 SELECT a1.oid, a1.amname, p1.oid, p1.proname FROM pg_am AS a1, pg_proc AS p1 -WHERE p1.oid =3D a1.amhandler AND a1.amtype =3D 's' AND +WHERE p1.oid =3D a1.amhandler AND a1.amtype =3D 't' AND (p1.prorettype !=3D 'table_am_handler'::regtype OR p1.proretset OR p1.pronargs !=3D 1 --U89T2T5DbuN0UWFa-- --Y1lLLxQ5r4Syo4Ql Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmVcSZAACgkQnvQgOdby QH0ZMg//XIeo3ffw3VGcEIytOv+tiPIDZLXUUbfK25B/dJ7hXxhSEkiwAdR6D5hv YtR/3OhIdTtPOnegsGrHSeUohCmYnGR2VtRuhdSYKESVYAYrmID//6nQLGM7mQ7g 0SMCPa1uWyAU7X0IURUTHMwSnqwVc0/C366szm+v2Oh0dlgX2j1mB+DGW++rHsdD Rcpiq14Lzpj4SNbW12k4TYUN7ZD9OPFSQ73iqu2dsbf/igoNNl0tL0rFo0uFCRGf JucubUPkotvdDModNi0ibZsEMnH3V4sNDufXEkOA8DNvPCH8yluNCqmhLoGRJzb7 3eTTzafb17FtQ9ZmigXJpGnKh2Q5EZopjlnLUCAWH/DsEKO+i3ZclfTw0/gJnLxw 7Fsm2bF7t2sMRM0bi3YTzd/ufF8zKJtOrWj/WUWjLCKfVXwKJFcHxdd09dpJTFZ9 nkoGl1Zb565uyW51Vsu5t/Ip79HKQTW3yQELkC1uOa8oh02EzDum8V7Ek4C11kyX 0X3ay+JNgetB9zOyYTMGD7cWnHhwcYTuQm4/ZGkDYTYTaOqovnpOb+B0JTKsDJa2 w6R4CMURdiIbdqjdInM0OscQ/1aPDOwvqJJadNdClo9NImqrwWCitlfedYydofmy xB4MeWKhZEfWnVU4EryDO4P7BLMlHXrMkve2uUuzN6E7bwvAqm4= =9sp2 -----END PGP SIGNATURE----- --Y1lLLxQ5r4Syo4Ql--