Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYwYu-00041i-0M for pgsql-bugs@arkaria.postgresql.org; Wed, 01 Feb 2017 15:11:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cYwYt-0003jc-Jt for pgsql-bugs@arkaria.postgresql.org; Wed, 01 Feb 2017 15:11:07 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cYvqY-0003wo-Li for pgsql-bugs@postgresql.org; Wed, 01 Feb 2017 14:25:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cYvqV-0004u4-SX for pgsql-bugs@postgresql.org; Wed, 01 Feb 2017 14:25:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v11EPDId003793; Wed, 1 Feb 2017 09:25:13 -0500 From: Tom Lane To: krzysztof.heim@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14521: pg_attribute.attndims = 0 for array column In-reply-to: <20170201102303.1406.38167@wrigleys.postgresql.org> References: <20170201102303.1406.38167@wrigleys.postgresql.org> Comments: In-reply-to krzysztof.heim@gmail.com message dated "Wed, 01 Feb 2017 10:23:03 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3791.1485959113.1@sss.pgh.pa.us> Date: Wed, 01 Feb 2017 09:25:13 -0500 Message-ID: <3792.1485959113@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org krzysztof.heim@gmail.com writes: > I have base table A with column type integer array. > I also have table B derived from table A. > When I query pg_attribute for table A, attndims shows 1 (correct), when I do > same query for table B - attndims shows 0 for same column. > Is it a bug, or it's desired behavior (since it's a derived column). We don't really care. attndims is a historical leftover and should never be relied on for any semantically significant purpose. TBH, my inclination would be to remove the column altogether rather than "fix" this. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs