From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Stas Kelvich <s.kelvich@postgrespro.ru>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Stats sender and 2pc minor problem
Date: Fri, 14 Oct 2016 09:41:33 -0300
Message-ID: <20161014124133.kz4cqhsis2vdt24v@alvherre.pgsql> (raw)
In-Reply-To: <8337.1476403259@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Tom Lane wrote:
> Stas Kelvich <s.kelvich@postgrespro.ru> writes:
> > Statistics sender logic during usual commit and two-phase commit do not
> > strictly matches each other and that leads to delta_live_tuples added to
> > n_live_tup in case of truncate in two phase commit.
>
> Yeah, that code says it's supposed to match AtEOXact_PgStat, but it
> doesn't.
Hmm, oops.
> I pushed this, but without the regression test case, which would have
> failed outright in any test run with max_prepared_transactions = 0.
I agree that that was the right approach. Thanks for taking care of it!
> I wonder if we could make that better by making the stats collector
> track stats by relfilenode rather than table OID. It'd be a pretty
> major logic change, though, to serve a corner case.
Hm, that's an idea.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us, s.kelvich@postgrespro.ru
Subject: Re: Stats sender and 2pc minor problem
In-Reply-To: <20161014124133.kz4cqhsis2vdt24v@alvherre.pgsql>
References: <8337.1476403259@sss.pgh.pa.us> <20161014124133.kz4cqhsis2vdt24v@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox