pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14239: Array of array type reporting
3+ messages / 3 participants
[nested] [flat]
* BUG #14239: Array of array type reporting
@ 2016-07-09 16:57 yrashk@gmail.com
0 siblings, 1 reply; 3+ messages in thread
From: yrashk@gmail.com @ 2016-07-09 16:57 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14239
Logged by: Yurii Rashkovskii
Email address: yrashk@gmail.com
PostgreSQL version: 9.5.3
Operating system: Mac OS X
Description:
Hi,
Ran:
db=# CREATE TABLE sal_emp (
db(# name text,
db(# pay_by_quarter integer[],
db(# schedule text[][]
db(# );
CREATE TABLE
db=# \d sal_emp;
Expected:
Table "eventsourcing.sal_emp"
Column | Type | Modifiers
----------------+-----------+-----------
name | text |
pay_by_quarter | integer[] |
schedule | text[][] |
Got:
Table "eventsourcing.sal_emp"
Column | Type | Modifiers
----------------+-----------+-----------
name | text |
pay_by_quarter | integer[] |
schedule | text[] |
Is there any reason why schedule text[][] is reported as text[]? I think my
JDBC driver (pgjdbc-ng) picks that up and fails to do proper coercion
because it things it's simply a text[].
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #14239: Array of array type reporting
@ 2016-07-09 19:03 Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
parent: yrashk@gmail.com
0 siblings, 1 reply; 3+ messages in thread
From: Peter Eisentraut @ 2016-07-09 19:03 UTC (permalink / raw)
To: yrashk@gmail.com; pgsql-bugs
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.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #14239: Array of array type reporting
@ 2016-07-29 03:25 Bruce Momjian <bruce@momjian.us>
parent: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
0 siblings, 0 replies; 3+ messages in thread
From: Bruce Momjian @ 2016-07-29 03:25 UTC (permalink / raw)
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>; +Cc: yrashk@gmail.com; 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 +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-07-29 03:25 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-07-09 16:57 BUG #14239: Array of array type reporting yrashk@gmail.com
2016-07-09 19:03 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
2016-07-29 03:25 ` Bruce Momjian <bruce@momjian.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox