Re: Newbie Developer Question - Mailing list pgsql-novice

From Tom Lane
Subject Re: Newbie Developer Question
Date
Msg-id 12333.1170310968@sss.pgh.pa.us
Whole thread Raw
In response to Newbie Developer Question  ("Matthew Campbell" <mtthw.cmpbll@gmail.com>)
Responses Re: Newbie Developer Question  ("Matthew Campbell" <mtthw.cmpbll@gmail.com>)
List pgsql-novice
"Matthew Campbell" <mtthw.cmpbll@gmail.com> writes:
> ... We've been digging through the src/backend/access/hash/
> and we're having a hard time figuring out the correct way to walk through
> items in a page.  Is this what the hashbeginscan() method is for?

No, hashbeginscan doesn't do much at all except initialize state.  The
interesting stuff happens during successive hashgettuple calls ---
specifically _hash_first the first time and _hash_next on later calls.

            regards, tom lane

pgsql-novice by date:

Previous
From: "Matthew Campbell"
Date:
Subject: Newbie Developer Question
Next
From: ann hedley
Date:
Subject: [Fwd: query efficiency - Can I speed it up?]