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 1pp4YL-00050A-1J for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Apr 2023 09:56:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pp4YJ-0008Bt-US for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Apr 2023 09:56:39 +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 1pp4Dw-0007M8-Hd for pgsql-bugs@lists.postgresql.org; Wed, 19 Apr 2023 09:35:36 +0000 Received: from gendo.asyd.net ([2001:bc8:3045:100::1]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pp4Dt-000fAQ-1I for pgsql-bugs@postgresql.org; Wed, 19 Apr 2023 09:35:35 +0000 Received: by gendo.asyd.net (Postfix, from userid 1000) id A5D391A1E5F; Wed, 19 Apr 2023 11:35:29 +0200 (CEST) Date: Wed, 19 Apr 2023 11:35:29 +0200 From: Bruno Bonfils To: pgsql-bugs@postgresql.org Subject: About #13489 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello there, A few years ago, someone reported a bug (#13489) about attndims, which returned a false value on an array on a table created by CREATE TABLE (LIKE INCLUDING ALL), example: CREATE TABLE test (data integer, data_array integer[]; CREATE TABLE test_clone (LIKE test INCLUDING ALL); SELECT attndims FROM pg_attribute WHERE attrelid = 'test'::regclass AND attname = 'data_array'; returns 1 but SELECT attndims FROM pg_attribute WHERE attrelid = 'test_clone'::regclass AND attname = 'data_array'; returns 0 However, according to the documentation https://www.postgresql.org/docs/15/catalog-pg-attribute.html, since data_array is an array I expected the returned value should be greater than 0 Thanks (tested on PostgreSQL 15.2 (Debian 15.2-1.pgdg110+1))