Re: lbound1 default in buildint2vector/buildoidvector

2018-11-15 Thread Kohei KaiGai
2018年11月15日(木) 12:41 Tom Lane : > > Kohei KaiGai 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. > Ah, yes, I got the point.

Re: lbound1 default in buildint2vector/buildoidvector

2018-11-14 Thread Tom Lane
Kohei KaiGai 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

lbound1 default in buildint2vector/buildoidvector

2018-11-14 Thread Kohei KaiGai
Hello, 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? When I made a simple C-function that returns result of int2vector which carries attribute numbers of the argument. p