Re: So what's an "empty" array anyway?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: So what's an "empty" array anyway?
Дата
Msg-id 9858.1224623789@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: So what's an "empty" array anyway?  ("David E. Wheeler" <david@kineticode.com>)
Ответы Re: So what's an "empty" array anyway?  ("David E. Wheeler" <david@kineticode.com>)
Список pgsql-hackers
"David E. Wheeler" <david@kineticode.com> writes:
> On Oct 21, 2008, at 13:58, Tom Lane wrote:
>> Same as before, I think: initialize it to '{}'.  What's at stake here
>> is exactly what does that notation mean ...

> An empty, single-dimension array. But I got the impression from Simon  
> that he thought it should be NULL.

Well, we can't do that because it would clearly break too much existing
code.  '{}' has got to result in something you can successfully
concatenate more elements to.  But either the current behavior with
a zero-dimension array, or a one-dimensional length-zero array would
presumably work okay.
        regards, tom lane


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: So what's an "empty" array anyway?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Bitmap Indexes: request for feedback