Re: BUG #14239: Array of array type reporting

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: yrashk(at)gmail(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14239: Array of array type reporting
Date: 2016-07-29 03:25:57
Message-ID: 20160729032557.GB17219@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sat, Jul 9, 2016 at 03:03:34PM -0400, Peter Eisentraut wrote:
> On 7/9/16 12:57 PM, yrashk(at)gmail(dot)com wrote:
> >Is there any reason why schedule text[][] is reported as text[]?
>
> There is no such thing as text[][]. I'm not sure why it's accepted (perhaps
> backward compatibility), but PostgreSQL only supports one level of
> array-ness, which can, however, be multidimensional.
>
> So this is nothing to worry about.

Yeah, arrays basically don't store any supplied dimmensions:

test=> CREATE TABLE test(x TEXT[3]);
CREATE TABLE

test=> \d test
Table "public.test"
Column | Type | Modifiers
--------+--------+-----------
x | text[] |

^^

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message kh2 2016-07-29 13:34:00 BUG #14269: Postgres JDBC driver should be able to connect using protocol version 2 to server versions 9.5+
Previous Message Michael Paquier 2016-07-29 03:05:11 Re: BUG #14236: pg_upgrade failed