Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ihWL3-0003e3-6C for pgsql-committers@arkaria.postgresql.org; Wed, 18 Dec 2019 10:13:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ihWL1-0003gM-SJ for pgsql-committers@arkaria.postgresql.org; Wed, 18 Dec 2019 10:13:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ihWL0-0003gF-0l for pgsql-committers@lists.postgresql.org; Wed, 18 Dec 2019 10:13:51 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ihWKv-0006DG-JL for pgsql-committers@lists.postgresql.org; Wed, 18 Dec 2019 10:13:49 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 82FD221EAF for ; Wed, 18 Dec 2019 05:13:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 18 Dec 2019 05:13:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=7P+zs3UcGXLMDOXJBYVzmwl5X/h UAtykQk7vormSZWY=; b=VdGMtqiSGcF6pML9MdpjREJ6/nbmXdIz5e/aMSvp1fk EmNJcNcGPhdUlY3kvCRxrRFWR1RPgKPk9CjDgT71JnyeAuWE1q/VIFkXc3ean5vZ kys42Q04ucRsb1eI0wfKNDXLfYt9fYny+DaSL2cdGrSyl5irn8IjQU8gq/tltngW pVSvuCWc4OSMZmXG2xI8HxH6n1+1asbwyRx+pKUkMgja0BYT6KpPzy/8Ifmli1wr 6WT4p8nhe3HTQu17BIP8eLp98LuKqVUPXUVfX3SLYCx0/5vvxqRedQiMyg390GdW /ImT9ExNIKgerDCEVVadrzONIZ+VylRWjHNiKaCxsNg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=7P+zs3 UcGXLMDOXJBYVzmwl5X/hUAtykQk7vormSZWY=; b=J0IvpQnAYjmmWQiC4m/UoJ 0IaDa/eFR3BIADnoEPk1MPovqHPfS1uOxZ30hq3LRUFwpeKDS436fTMYWzXkPEAI 3zrSRio+Bu0ixaz3F+j0adHUvSoRD7MttFyh/JsqTyHHWHZGfg7eoFI3BA4d3q5F kTLjDLsaEJlNjBi2SaFGgk0lnjc85iJAYHMZu1fMkZixkKPg4LOT46PvqNDR3EfK kCh2yR6ne0dAk/gZls0U2cm65Os7Kp578ez51hbFvPnx6CeDK/oKOEJ9JlyS30tl LbWvzKw2FzwmqIFce8wVvasD+0z1HXLkFENLjHfJ86lY9p5EPJE8Oopu8Bi8xXig == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddtledgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucfkphepudduuddrud dtvddrudektddrudekheenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 799C88005B for ; Wed, 18 Dec 2019 05:13:42 -0500 (EST) Date: Wed, 18 Dec 2019 19:13:38 +0900 From: Michael Paquier To: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Refactor attribute mappings used in logical tuple conversion Message-ID: <20191218101338.GB325369@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1LKvkjL3sHcu1TtY" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --1LKvkjL3sHcu1TtY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 18, 2019 at 07:25:49AM +0000, Michael Paquier wrote: > Refactor attribute mappings used in logical tuple conversion >=20 > Tuple conversion support in tupconvert.c is able to convert rowtypes > between two relations, inner and outer, which are logically equivalent > but have a different ordering or even dropped columns (used mainly for > inheritance tree and partitions). This makes use of attribute mappings, > which are simple arrays made of AttrNumber elements with a length > matching the number of attributes of the outer relation. The length of > the attribute mapping has been treated as completely independent of the > mapping itself until now, making it easy to pass down an incorrect > mapping length. Hmm. All buildfarm members are happy with this change, except prairiedog which is picky about the part in rewriteManip.h (dory is failing now but it passed once before with this commit, longfin is happy as well as my Mac laptop): In file included from index.c:66: =2E./../../src/include/rewrite/rewriteManip.h:20: error: redefinition of typedef 'AttrMap' =2E./../../src/include/access/attmap.h:38: error: previous declaration of 'AttrMap' was here An obvious fix would be to remove the declaration of AttrMap in rewriteManip.h to have an inclusion of attnum.h so as rewriteManip.h is still self-compilable, but I thought that we only wanted a dependency to parsenodes.h there. Any thoughts? -- Michael --1LKvkjL3sHcu1TtY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl35+9IACgkQnvQgOdby QH3W9xAAp+AyjDgXPV+v0QLtDXhQnx94HOzHV93aWhM+hjLyNrXWUJxQCtDY95WH 134nqpESZJow7BK5UD1amnN0vRWKr7agTxAXqtJhC9p+TuFkE1jBgcuNA/IObWlH QrZ5uAPuQcDLioj+LfKrLGoU0bFnB8HCODZa317yl5HdK/smTmn9XVH4IHZUiKrm YGeIdVhGK1e62h3rC1XkgbbIBAWmhouYR1rLgT5BxoS8JY9aRN1N+zKk/E157rIt JYEj9MhqW4iR/+KQrMOqpszNrrDJYu6SpAti5yqXpvjC4QJaohu86gv0CmfH0Mpr 1m0/xXLfxXmxAHshffGtDW3fXUmMNOPmVyyIn1XuTOOBmUuL378LUDiv2RWEEKkG 1KrdB/YPhknPKlfVsSc8DWrTAt0XiXI4bWKSQUGzPfDsVxh+NHLr24YPzri6gg1Y CfxldlbcGz5ij6fzB/l3lRYufvT+gEOo53NIt44Um+Y4Y9hQPI1zILftP34xDvpN Y6phdTsU8d2AEbOFn0CmPETJqKDVAEiMMbOsXc2LS18pWWhX2c97mhZ6ca1pd57h BtDxKnbNDgQJlSbQR9mIP/jxb3sc9e8a1kJiXNbcTanQk26CRv35hAWS+wsph218 S59ypKF+rRJBV4HM6v9cACewMmy1OFytGObUoLjlC8tZh5OCV5o= =evaY -----END PGP SIGNATURE----- --1LKvkjL3sHcu1TtY--