Re: What Index Access Method Functions are really needed?

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-hackers(at)postgresql(dot)org>, <weissig(at)rbg(dot)informatik(dot)tu-darmstadt(dot)de>
Subject: Re: What Index Access Method Functions are really needed?
Date: 2011-04-23 15:52:27
Message-ID: 4DB2AF6B020000250003CC41@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Yves Weißig wrote:

> I can not find "amcostestimate" in hash.h or anywhere, or am I
> missing something?

Search for hashcostestimate here:

http://git.postgresql.org/gitweb?p=postgresql.git;a=blob;f=src/backend/utils/adt/selfuncs.c

To find that, I ran this query:

select * from pg_am;

That showed me that the name for the hash implementation of that
function was hashcostestimate. Then I ran this in my bash shell, at
the root of the source tree:

find -name '*.h' -or -name '*.c' \
| egrep -v '^\./src/test/.+/tmp_check/' \
| xargs egrep -n '\bhashcostestimate\b'

-Kevin

Browse pgsql-hackers by date

  From Date Subject
Next Message Alex Hunsaker 2011-04-23 16:12:25 Re: Fix for Perl 5.14
Previous Message Tom Lane 2011-04-23 15:37:49 Re: Collation patch's handling of wcstombs/mbstowcs is sheerest fantasy