Re: Arrays of Complex Types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Arrays of Complex Types
Дата
Msg-id 5667.1175109866@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Arrays of Complex Types  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: Arrays of Complex Types  (David Fetter <david@fetter.org>)
Список pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> "Tom Lane" <tgl@sss.pgh.pa.us> writes:
>> CREATE ARRAY TYPE FOR foo

> I also made a suggestion along the way that we never create array types
> automatically except for domains.

That seems awfully strange, not to mention very non-backwards-compatible
since it exactly reverses what happens now.

I'd be willing to consider it if a domain were a zero-cost addition to
the equation, but it is not --- every operation on a domain has to check
to see if there are constraints to enforce.  You shouldn't have to buy
into that overhead to have an array.
        regards, tom lane


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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Arrays of Complex Types
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Patch queue concern