Re: Should array_length() Return NULL

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: Should array_length() Return NULL
Дата
Msg-id 8DED33E2-D3D2-450C-BB49-7A31D449F223@justatheory.com
обсуждение исходный текст
Ответ на Re: Should array_length() Return NULL  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mar 16, 2013, at 11:19 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Perhaps not.  I think for most uses, a 1-D zero-length array would be
> just as good.  I guess what I'd want to know is whether we also need
> to support higher-dimensional zero-size arrays, and if so, what does
> the I/O syntax for those look like?

No.

> Another fly in the ointment is that if we do redefine '{}' as meaning
> something other than a zero-D array, how will we handle existing
> database entries that are zero-D arrays?

NULL. About as useful. ;-P

David


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Should array_length() Return NULL
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Strange Windows problem, lock_timeout test request