Re: pg_type.typname of array types.

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: pg_type.typname of array types.
Дата
Msg-id 4CFF99F5.7050600@dunslane.net
обсуждение исходный текст
Ответ на pg_type.typname of array types.  (Dmitriy Igrishin <dmitigr@gmail.com>)
Ответы Re: pg_type.typname of array types.  (Dmitriy Igrishin <dmitigr@gmail.com>)
Список 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
typarrayfrom   pg_type where typname = 'foo');   CREATE TYPE   CREATE TYPE     typname   ---------     ___foo   (1
row)


cheers

andrew



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Final(?) proposal for wal_sync_method changes
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: serializable read only deferrable