Re: What Index Access Method Functions are really needed?

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <weissig(at)rbg(dot)informatik(dot)tu-darmstadt(dot)de>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Leonardo Francalanci" <m_lists(at)yahoo(dot)it>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Index Access Method Functions are really needed?
Date: 2011-04-22 15:27:15
Message-ID: 4DB15803020000250003CBBB@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Leonardo Francalanci <m_lists(at)yahoo(dot)it> wrote:
>>> another question regarding indexes. Sadly I can't find enough
>>> info in the documentation. Which of the functions are needed in
>>> order for a index to work?
>>
>> All of them.
>
>
> Maybe I completely misunderstood the question, but some functions
> are "optionals", such as amgetbitmap, right?
>
> http://www.postgresql.org/docs/9.0/static/index-functions.html

Browsing that page, I think these are the two relevant bits
regarding exceptions to the rule:

| The amgettuple function need only be provided if the access method
| supports "plain" index scans. If it doesn't, the amgettuple field
| in its pg_am row must be set to zero.

| The amgetbitmap function need only be provided if the access
| method supports "bitmap" index scans. If it doesn't, the
| amgetbitmap field in its pg_am row must be set to zero.

I have no idea which of these would be useful for the AM being
discussed.

-Kevin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-04-22 15:27:50 Re: "stored procedures"
Previous Message Merlin Moncure 2011-04-22 15:24:13 Re: "stored procedures"