Skip site navigation (1) Skip section navigation (2)

Re: Autovacuum and stats_row_level

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chander Ganesan <chander(at)otg-nc(dot)com>
Cc: d(dot)wall(at)computer(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Autovacuum and stats_row_level
Date: 2008-01-30 04:32:01
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
Chander Ganesan <chander(at)otg-nc(dot)com> writes:
> David Wall wrote:
>> Noted that to use autovacuum we need to turn on stats_row_level (along 
>> with stats_start_collector that is on by default).  Since 
>> stats_row_level is off by default, I wonder what sort of overhead is 
>> incurred since it sounds like it could add up if it's storing 
>> additional stats information on every row update, though it's not 
>> clear to me just what it means to have row level stats.

> There is overhead. I think it is somewhat related to your query load  
> However, I do know that there is some rate limiting logic in place to 
> prevent the backends from sending too many messages to the stats collector.

The rate-limit logic is new for 8.3, but it's always been true that at
most one message is sent per query (and in fact one per transaction,
in recent releases).

			regards, tom lane

In response to

pgsql-general by date

Next:From: yogesh m chaudhariDate: 2008-01-30 04:42:23
Subject: how to create cluster(loadbanacing) of postgresql server
Previous:From: Guido BarosioDate: 2008-01-30 04:27:59
Subject: Re: Backup

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group