Re: How to know detailed information about HOT(Heap-Only Tuples)? - Mailing list pgsql-general

From Luca Ferrari
Subject Re: How to know detailed information about HOT(Heap-Only Tuples)?
Date
Msg-id CAKoxK+4=D2F-34dnqE7Hv1H+XcTSXK=X=NdjcmbwFywvq_3Rtg@mail.gmail.com
Whole thread Raw
In response to How to know detailed information about HOT(Heap-Only Tuples)?  (高健 <luckyjackgao@gmail.com>)
List pgsql-general
On Thu, Aug 22, 2013 at 4:20 AM, 高健 <luckyjackgao@gmail.com> wrote:

> according to  a table, How many tuples are heap only tuples , and how many
> are not?
>

I believe there are not "hot tuples", a tuple is updated using HOT
depending on the indexes defined and the type of update itself.
Anyway, you can get an information of how many tuples have been
hot-touched via pg_stat_user_tables.n_tup_hot_upd


> And also , Is there any options which can influence HOT occurrance?

The storage setting (fillfactor) will change the hotness of your
tables, but of course this depends on the workload.

Luca


pgsql-general by date:

Previous
From: Raghavendra
Date:
Subject: Re: PostgreSQL 9.2 Logging
Next
From: Luca Ferrari
Date:
Subject: Re: PostgreSQL 9.2 Logging