Search Postgresql Archives

Re: Curiosity with catalog table array attribute index dimensions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Erik Jones <erik@xxxxxxxxxx> writes:
> So, I noticed today that pg_index.indkey index values start at 0  
> instead of 1 as I'd expected.  Are there other cases of this?   
> Shouldn't that be documented somewhere?

Well, the CREATE TYPE manual page has

    For historical reasons (i.e., this is clearly wrong but it's far too
    late to change it), subscripting of fixed-length array types starts from
    zero, rather than from one as for variable-length arrays.

oidvector and int2vector aren't fixed-length anymore, but they maintain
their old behavior in this respect for backward compatibility.

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux