Re: Custom types and arrays

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Custom types and arrays
Дата
Msg-id 3FA5BE71.9080909@joeconway.com
обсуждение исходный текст
Ответ на Re: Custom types and arrays  ("mlunnon @ RWA" <mlunnon@rwa-net.co.uk>)
Список pgsql-general
mlunnon @ RWA wrote:
> Thanks for your reply tom. I'm sure it is not a mistype, I included the
> definition that I used in my script. Perhaps it is something to do with the
> cygwin installation of Postgres that I have i will try it on a Linux box.
>

The type you were referring to is a composite type:
   CREATE TYPE TEST_TYPE AS (ID INTEGER, CODE VARCHAR(40));

The documentation wording could be improved (perhaps it should say
"user-defined *base* types?), but there is no support for arrays of
composite types -- or at least if there is, I've never seen it. I know
for sure that creation of a user defined composite type will not create
a corresponding array type.

Joe


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: AS operator and subselect result names: PostgreSQL vs. Oracle
Следующее
От: Ron St-Pierre
Дата:
Сообщение: Re: Constraint Problem