Re: pg_type.typname of array types.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_type.typname of array types.
Date: 2010-12-08 14:45:09
Message-ID: 4CFF99F5.7050600@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-12-08 14:46:21 Re: Slow BLOBs restoring
Previous Message Tom Lane 2010-12-08 14:40:04 Re: Final(?) proposal for wal_sync_method changes