Re: BUG #14239: Array of array type reporting - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #14239: Array of array type reporting
Date
Msg-id 20160729032557.GB17219@momjian.us
Whole thread Raw
In response to Re: BUG #14239: Array of array type reporting  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-bugs
On Sat, Jul  9, 2016 at 03:03:34PM -0400, Peter Eisentraut wrote:
> On 7/9/16 12:57 PM, yrashk@gmail.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@momjian.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 +

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #14236: pg_upgrade failed
Next
From: kh2@araxis.com
Date:
Subject: BUG #14269: Postgres JDBC driver should be able to connect using protocol version 2 to server versions 9.5+