Re: Proposal: new function array_init

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Proposal: new function array_init
Дата
Msg-id 24655.1212591404@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Proposal: new function array_init  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Ответы Re: Proposal: new function array_init
Список pgsql-hackers
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> I put fill value on end, because it is like default value:

> array_set(array[2,2]);
> array_set(array[2,2], 0);

Huh?  That's completely nonsensical ... where will you determine the
type of the array, if you don't have a sample element?

The fact that the fill value is determining the array type is why
it seems important enough to put first.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Core team statement on replication in PostgreSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Change lock requirements for adding a trigger