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 1r5G84-00Cdgb-HB for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Nov 2023 02:04:44 +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 1r5G82-00CDI8-VR for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Nov 2023 02:04:42 +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 1r5G82-00CDHv-LP for pgsql-hackers@lists.postgresql.org; Tue, 21 Nov 2023 02:04:42 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r5G80-007Whk-81 for pgsql-hackers@postgresql.org; Tue, 21 Nov 2023 02:04:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3AL24LSb1402392; Mon, 20 Nov 2023 21:04:21 -0500 From: Tom Lane To: Bruce Momjian cc: Bruno Bonfils , PostgreSQL-development , sshang@pivotal.io, Alexey Bashtanov Subject: Re: About #13489, array dimensions and CREATE TABLE ... LIKE In-reply-to: References: Comments: In-reply-to Bruce Momjian message dated "Mon, 20 Nov 2023 20:33:50 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1402390.1700532261.1@sss.pgh.pa.us> Date: Mon, 20 Nov 2023 21:04:21 -0500 Message-ID: <1402391.1700532261@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bruce Momjian writes: > I would like to apply this patch to master because I think our current > deficiencies in this area are unacceptable. I do not think this is a particularly good idea, because it creates the impression in a couple of places that we track this data, when we do not really do so to any meaningful extent. > An alternate approach would > be to remove pg_attribute.attndims so we don't even try to preserve > dimensionality. I could get behind that, perhaps. It looks like we're not using the field in any meaningful way, and we could simplify TupleDescInitEntry and perhaps some other APIs. regards, tom lane