Re: fill factor guestimate - Mailing list pgsql-general

From Scott Marlowe
Subject Re: fill factor guestimate
Date
Msg-id BANLkTi=jp_RBgBzp3b_eDucSbf-HL_hYwA@mail.gmail.com
Whole thread Raw
In response to fill factor guestimate  (Dave Thompson <dthomp325@gmail.com>)
List pgsql-general
On Sat, Jun 18, 2011 at 6:12 PM, Dave Thompson <dthomp325@gmail.com> wrote:
> Hi,
>
> I have a table that will be updated frequently. Each row will be
> updated at least once during it's lifetime, and most rows will be
> updated ~10 times in their first 2 weeks of existence, and then
> relatively rarely after that. The rows are being updated by a prepared
> statement that gets executed with ~100 - ~600 different parameter
> sets, each one updating a single row. What should my initial
> best-guess fill-factor for the table be? Most of the updates don't
> touch an indexed column, so I'm hoping to take advantage of the HOT
> update feature. Will EXPLAIN tell me if an UPDATE uses HOT?

No but you can monitor pg_stat_user_tables to see how many updates
were HOT updates.

pgsql-general by date:

Previous
From: lover boi
Date:
Subject: Referencing function value inside CASE..WHEN
Next
From: lover boi
Date:
Subject: Referencing function value inside CASE..WHEN