Re: gist picksplit iteration

From: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
To: Marios Vodas <mvodas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: gist picksplit iteration
Date: 2010-10-06 19:13:41
Message-ID: m239sjjfru.fsf@2ndQuadrant.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Marios Vodas <mvodas(at)gmail(dot)com> writes:
> I would expect it to start from 0, since C arrays are 0 based.
> So my question is why does this happen?

Well I don't have any good answer other than "it's the API".

Time to have a look at some contrib code and some other, maybe, like
ip4r or prefix (the former is fixed size, the later a varlena struct,
pick a good example for you).

--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2010-10-06 19:35:44 Re: Issues with Quorum Commit
Previous Message Dimitri Fontaine 2010-10-06 19:04:11 Re: Issues with Quorum Commit