From: | Erik Jones <erik(at)myemma(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Curiosity with catalog table array attribute index dimensions |
Date: | 2008-04-16 21:34:15 |
Message-ID: | 0C0FE45A-BBE8-4D81-A4C5-A0E896E323DB@myemma.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Apr 16, 2008, at 4:26 PM, Tom Lane wrote:
> Erik Jones <erik(at)myemma(dot)com> 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.
Ah, thanks, at least now I know what to look for instead of using
trial and error.
Erik Jones
DBA | Emma®
erik(at)myemma(dot)com
800.595.4401 or 615.292.5888
615.292.0777 (fax)
Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Browne | 2008-04-16 21:49:39 | Re: ALTER TABLE DDL Triggers? |
Previous Message | Tom Lane | 2008-04-16 21:26:32 | Re: Curiosity with catalog table array attribute index dimensions |