Re: Inconsistent behavior on Array & Is Null? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Inconsistent behavior on Array & Is Null?
Date
Msg-id 27292.1080916841@sss.pgh.pa.us
Whole thread Raw
In response to Re: Inconsistent behavior on Array & Is Null?  (Greg Stark <gsstark@mit.edu>)
Responses Re: Inconsistent behavior on Array & Is Null?  (Joe Conway <mail@joeconway.com>)
Re: Inconsistent behavior on Array & Is Null?  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> Well that breaks other things. Then lots of functions have to become
> non-strict to work properly because they should have valid output when passed
> null values. Ick.
> ...
> I'm leaning towards suggesting that postgres should follow sql-99 here and
> normalize all array indexes to have a lower bound of 1.

That would break even more things, no?

On the other hand, it'd get rid of the problem that we presently face
with dump/restore of arrays that don't have lower bound 1.  Because
pg_dump doesn't do anything to mark such values, they'll end up with
lower bound 1 after reload anyway.  The fact that we haven't heard lots
of squawks about that suggests to me that not many people are using such
arrays at present ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: ohp@pyrenet.fr
Date:
Subject: GiST future
Next
From: Joe Conway
Date:
Subject: Re: Inconsistent behavior on Array & Is Null?