Lists: | pgsql-bugsPostg사설 토토 사이트SQL |
---|
From: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | bugs(at)postgresql(dot)org, hackers(at)postgresql(dot)org |
Subject: | Failures with arrays |
Date: | 1998-11-25 23:48:51 |
Message-ID: | 199811252348.XAA12089@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs pgsql-hackers |
This was reported as a bug with the Debian package of 6.3.2; the same
behaviour is still present in 6.4.
bray=> create table foo ( t text[]);
CREATE
bray=> insert into foo values ( '{"a"}');
INSERT 201354 1
bray=> insert into foo values ( '{"a","b"}');
INSERT 201355 1
bray=> insert into foo values ( '{"a","b","c"}');
INSERT 201356 1
bray=> select * from foo;
t
-------------
{"a"}
{"a","b"}
{"a","b","c"}
(3 rows)
bray=> select t[1] from foo;
ERROR: type name lookup of t failed
bray=> select * from foo;
t
-------------
{"a"}
{"a","b"}
{"a","b","c"}
(3 rows)
bray=> select foo.t[1] from foo;
t
-
a
a
a
(3 rows)
bray=> select count(foo.t[1]) from foo;
pqReadData() -- backend closed the channel unexpectedly.
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"Let us therefore come boldly unto the throne of grace,
that we may obtain mercy, and find grace to help in
time of need." Hebrews 4:16
From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | olly(at)lfix(dot)co(dot)uk (Oliver Elphick) |
Cc: | bugs(at)postgreSQL(dot)org, hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] Failures with arrays |
Date: | 1998-12-18 18:06:18 |
Message-ID: | 199812181806.NAA03884@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs Postg사설 토토 사이트SQL |
New TODO list item:
* select t[1] from foo fails, select count(foo.t[1]) from foo crashes
> This was reported as a bug with the Debian package of 6.3.2; the same
> behaviour is still present in 6.4.
>
> bray=> create table foo ( t text[]);
> CREATE
> bray=> insert into foo values ( '{"a"}');
> INSERT 201354 1
> bray=> insert into foo values ( '{"a","b"}');
> INSERT 201355 1
> bray=> insert into foo values ( '{"a","b","c"}');
> INSERT 201356 1
> bray=> select * from foo;
> t
> -------------
> {"a"}
> {"a","b"}
> {"a","b","c"}
> (3 rows)
>
> bray=> select t[1] from foo;
> ERROR: type name lookup of t failed
> bray=> select * from foo;
> t
> -------------
> {"a"}
> {"a","b"}
> {"a","b","c"}
> (3 rows)
>
> bray=> select foo.t[1] from foo;
> t
> -
> a
> a
> a
> (3 rows)
>
> bray=> select count(foo.t[1]) from foo;
> pqReadData() -- backend closed the channel unexpectedly.
>
> --
> Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
> Isle of Wight http://www.lfix.co.uk/oliver
> PGP key from public servers; key ID 32B8FAA1
> ========================================
> "Let us therefore come boldly unto the throne of grace,
> that we may obtain mercy, and find grace to help in
> time of need." Hebrews 4:16
>
>
>
>
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk> |
Cc: | bugs(at)postgresql(dot)org, hackers(at)postgresql(dot)org |
Subject: | Re: [HACKERS] Failures with arrays |
Date: | 2000-05-31 21:17:55 |
Message-ID: | 200005312117.RAA00876@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs pgsql-hackers |
I can confirm that this is fixed in 7.0, I believe by Tom Lane.
> This was reported as a bug with the Debian package of 6.3.2; the same
> behaviour is still present in 6.4.
>
> bray=> create table foo ( t text[]);
> CREATE
> bray=> insert into foo values ( '{"a"}');
> INSERT 201354 1
> bray=> insert into foo values ( '{"a","b"}');
> INSERT 201355 1
> bray=> insert into foo values ( '{"a","b","c"}');
> INSERT 201356 1
> bray=> select * from foo;
> t
> -------------
> {"a"}
> {"a","b"}
> {"a","b","c"}
> (3 rows)
>
> bray=> select t[1] from foo;
> ERROR: type name lookup of t failed
> bray=> select * from foo;
> t
> -------------
> {"a"}
> {"a","b"}
> {"a","b","c"}
> (3 rows)
>
> bray=> select foo.t[1] from foo;
> t
> -
> a
> a
> a
> (3 rows)
>
> bray=> select count(foo.t[1]) from foo;
> pqReadData() -- backend closed the channel unexpectedly.
>
> --
> Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
> Isle of Wight http://www.lfix.co.uk/oliver
> PGP key from public servers; key ID 32B8FAA1
> ========================================
> "Let us therefore come boldly unto the throne of grace,
> that we may obtain mercy, and find grace to help in
> time of need." Hebrews 4:16
>
>
>
>
>
--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026