Re: [HACKERS] Cache Hash Index meta page. - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [HACKERS] Cache Hash Index meta page.
Date
Msg-id CA+TgmobH6BMwFZBBPEuy=adtu5u5YWAOdaHW53p9OLddoEDCEA@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Cache Hash Index meta page.  (Mithun Cy <mithun.cy@enterprisedb.com>)
Responses Re: [HACKERS] Cache Hash Index meta page.  (Mithun Cy <mithun.cy@enterprisedb.com>)
List pgsql-hackers
On Tue, Dec 27, 2016 at 3:06 AM, Mithun Cy <mithun.cy@enterprisedb.com> wrote:
> Thanks, just like _bt_getroot I am introducing a new function
> _hash_getbucketbuf_from_hashkey() which will give the target bucket
> buffer for the given hashkey. This will use the cached metapage
> contents instead of reading meta page buffer if cached data is valid.
> There are 2 places which can use this service 1. _hash_first and 2.
> _hash_doinsert.

Can we adapt the ad-hoc caching logic in hashbulkdelete() to work with
this new logic?  Or at least update the comments?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] Add support to COMMENT ON CURRENT DATABASE
Next
From: Alvaro Herrera
Date:
Subject: [HACKERS] WARM and indirect indexes