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

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: So what's an "empty" array anyway?
Дата
Msg-id 47938F22-E981-451A-BC9C-AA61907B06B5@kineticode.com
обсуждение исходный текст
Ответ на Re: So what's an "empty" array anyway?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: So what's an "empty" array anyway?  (Josh Berkus <josh@agliodbs.com>)
Re: So what's an "empty" array anyway?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: So what's an "empty" array anyway?  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
On Oct 21, 2008, at 13:58, Tom Lane wrote:

>> If we got rid of zero dimension arrays, how would I declare a new
>> empty array in a PL/pgSQL function?
>
> 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.

Best,

David



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

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