Re: Status of autovacuum and the sporadic stats failures ? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Status of autovacuum and the sporadic stats failures ?
Date
Msg-id 20070207194532.GE6152@alvh.no-ip.org
Whole thread Raw
In response to Re: Status of autovacuum and the sporadic stats failures ?  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Status of autovacuum and the sporadic stats failures ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> Tom Lane wrote:

> > None of your use-cases require tracking multiple sets of stats within a
> > transaction, so I don't see why bother with that when we can just add a
> > "flush the stats" call.

FWIW I'm thinking that the corresponding code for handling the backends'
stats could be simplified, removing the hack that stores it in
TopTransactionContext, and just having a call to the stats flush
function in AbortTransaction and CommitTransaction.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Status of autovacuum and the sporadic stats failures ?
Next
From: Alvaro Herrera
Date:
Subject: Re: Status of autovacuum and the sporadic stats failures ?