Re: lbound1 default in buildint2vector/buildoidvector - Mailing list pgsql-hackers

From Tom Lane
Subject Re: lbound1 default in buildint2vector/buildoidvector
Date
Msg-id 14832.1542253262@sss.pgh.pa.us
Whole thread Raw
In response to lbound1 default in buildint2vector/buildoidvector  (Kohei KaiGai <kaigai@heterodb.com>)
Responses Re: lbound1 default in buildint2vector/buildoidvector
List pgsql-hackers
Kohei KaiGai <kaigai@heterodb.com> writes:
> I noticed buildint2vector / buildoidvector assigns lbound1=0 as default
> value, but array type shall have lbound1=1 in the default.
> Is there some reasons for the difference?

Backwards compatibility.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Richard Guo
Date:
Subject: Re: Pull up sublink of type 'NOT NOT (expr)'
Next
From: Amit Langote
Date:
Subject: Re: ATTACH/DETACH PARTITION CONCURRENTLY