pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Gierth <rhodiumtoad@postgresql.org>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Avoid having vacuum set reltuples to 0 on non-empty relations in
Date: Fri, 17 Mar 2017 13:18:55 +0000
Message-ID: <87pohgawh3.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <87tw6sayrv.fsf@news-spur.riddles.org.uk>
References: <E1coe3P-0001GR-TM@gemulon.postgresql.org>
	<7981.1489721826@sss.pgh.pa.us>
	<87tw6sayrv.fsf@news-spur.riddles.org.uk>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

>>>>> "Andrew" == Andrew Gierth <andrew@tao11.riddles.org.uk> writes:

 Tom> I have not looked very closely, but I'm suspicious that the test
 Tom> case depends on no autovacuum transactions running concurrently
 Tom> with it.  Disabling autovac on the table itself is not enough to
 Tom> control whether global xmin is being held back by some other
 Tom> autovac transaction somewhere.

 Andrew> Aren't vacuum transactions ignored for that?
 Andrew> vacuum_set_xid_limits is certainly passing ignoreVacuum=true to
 Andrew> GetOldestXmin.

Answering my own question: vacuum transactions are ignored but analyze
transactions aren't, and autovacuum will happily kick off an autoanalyze
of pg_attribute during the test.

Simplest fix seems to just be to remove the delete statement; I've
verified that the problem can be reproduced without it, and that should
make the result independent of OldestXmin. I'll commit that shortly
unless I hear to the contrary.

-- 
Andrew.


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (15+ messages)  latest in thread

Message-ID: <87pohgawh3.fsf@news-spur.riddles.org.uk>
Permalink:  ../87pohgawh3.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87pohgawh3.fsf@news-spur.riddles.org.uk

 · 

reply

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-committers@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, tgl@sss.pgh.pa.us, rhodiumtoad@postgresql.org
  Subject: Re: pgsql: Avoid having vacuum set reltuples to 0 on non-empty relations in
  In-Reply-To: <87pohgawh3.fsf@news-spur.riddles.org.uk>
  References: <E1coe3P-0001GR-TM@gemulon.postgresql.org> <7981.1489721826@sss.pgh.pa.us> <87tw6sayrv.fsf@news-spur.riddles.org.uk> <87pohgawh3.fsf@news-spur.riddles.org.uk>

* 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