From: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Martijn van Oosterhout <kleptog(at)svana(dot)org>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: User-defined typle similar to char(length) varchar(length) |
Date: | 2006-08-01 14:47:31 |
Message-ID: | 44CF6983.5060605@sigaev.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> Not really, but that's another thing that seems unreasonably hard to
> fix.
>
Sorry, but more problem:
1)
postgres=# select 'as'::pg_catalog.char, 'as'::char, 'as'::char(2);
char | bpchar | bpchar
------+--------+--------
a | a | as
(1 row)
postgres=# select 'as'::pg_catalog.char(2);
ERROR: syntax error at or near "("
LINE 1: select 'as'::pg_catalog.char(2);
2)
postgres=# select char(2) 'as';
bpchar
--------
as
(1 row)
postgres=# select pg_catalog.char(2) 'as';
ERROR: syntax error at or near "'as'"
LINE 1: select pg_catalog.char(2) 'as';
--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2006-08-01 14:51:56 | Re: User-defined typle similar to char(length) varchar(length) |
Previous Message | Gregory Stark | 2006-08-01 14:41:44 | Re: Hash indexes (was: On-disk bitmap index patch) |