From: | Dmitriy Igrishin <dmitigr(at)gmail(dot)com> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_type.typname of array types. |
Date: | 2010-12-08 14:51:31 |
Message-ID: | AANLkTikQ-62xM49qZR8qK8M4KU_PfJB7Ga3Dnm8kcgKw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hey Andrew,
Finally convinced. Thanks!
2010/12/8 Andrew Dunstan <andrew(at)dunslane(dot)net>
>
>
> On 12/08/2010 05:35 AM, Dmitriy Igrishin wrote:
>
>> Hey hackers@,
>>
>> Is it guaranteed that name of array types in pg_type system
>> catalog will always be prefixed by underscore or this convention
>> can be changed in future ?
>>
>>
>>
>
> It is not guaranteed today, let alone in the future, that the array type
> for x will be _x for any x.
>
> Consider:
>
> andrew=# create type _foo as (x int); create type foo as (y
> text);select typname from pg_type where oid = (select typarray from
> pg_type where typname = 'foo');
> CREATE TYPE
> CREATE TYPE
> typname
> ---------
> ___foo
> (1 row)
>
>
> cheers
>
> andrew
>
>
--
// Dmitriy.
From | Date | Subject | |
---|---|---|---|
Next Message | Marti Raudsepp | 2010-12-08 14:52:33 | Re: unlogged tables |
Previous Message | Tom Lane | 2010-12-08 14:50:42 | Re: pg_type.typname of array types. |