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

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: So what's an "empty" array anyway?
Дата
Msg-id 0887548F-59E3-467C-8BCA-C7A23DDFDC35@kineticode.com
обсуждение исходный текст
Ответ на Re: So what's an "empty" array anyway?  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: So what's an "empty" array anyway?  (Andrew Chernow <ac@esilo.com>)
Re: So what's an "empty" array anyway?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Oct 21, 2008, at 12:08, Simon Riggs wrote:

> Please remove zero-dimension arrays.
>
> The number of dimensions of an empty array really ought to be NULL, or
> if we fix it to be non-NULL then 1+. Zero just makes a weird case  
> for no
> reason. An empty string only makes sense in the context of that
> particular function, it doesn't really help with other maths.

If we got rid of zero dimension arrays, how would I declare a new  
empty array in a PL/pgSQL function?

Best,

David



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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: pg_ctl less than useful error message on windows when privileges wrong for postgres
Следующее
От: Andrew Chernow
Дата:
Сообщение: Re: So what's an "empty" array anyway?