Re: limiting hint bit I/O - Mailing list pgsql-hackers

From Robert Haas
Subject Re: limiting hint bit I/O
Date
Msg-id AANLkTi=Ex3XKryfSD1Yqc3NYpHvmd_9+euhQ4e2=pZL1@mail.gmail.com
Whole thread Raw
In response to Re: limiting hint bit I/O  (Cédric Villemain <cedric.villemain.debian@gmail.com>)
List pgsql-hackers
On Sat, Feb 5, 2011 at 5:04 PM, Cédric Villemain
<cedric.villemain.debian@gmail.com> wrote:
> Robert, I am unsure with the hint_bit_write_allowance counter. It
> looks a bit fragile because
> nothing prevent  hint_bit_write_allowance counter to increase a lot,
> so that is not 100 but X*100 next hint bit will be written. Isn't it ?

hint_bit_write_allowance can never be more than 100.  The only things
we ever do are set it to exactly 100, and decrease it by 1 if it's
positive.

> Also, won't buffer_allocation_count hit INT limit ?

Sure, if the backend sticks around long enough, but it's no big deal
if it overflows.

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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Foreign servers and user mappings versus the extensions patch
Next
From: Noah Misch
Date:
Subject: Re: ALTER TYPE 2: skip already-provable no-work rewrites