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

From Tom Lane
Subject Re: Status of autovacuum and the sporadic stats failures ?
Date
Msg-id 12305.1170890019@sss.pgh.pa.us
Whole thread Raw
In response to Re: Status of autovacuum and the sporadic stats failures ?  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> 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.

Yeah, thanks for the idea.  The pgstats code itself is now decoupled
from transaction boundaries.  It still has one hack to know that
autovacuum wants to keep its stats for the whole run, but it'll probably
be a lot easier to whack it around the way you want now.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: HOT for PostgreSQL 8.3
Next
From: Jan Wieck
Date:
Subject: Re: Proposal: Commit timestamp