pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Robert Haas <rhaas@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: pg_surgery: Try to stabilize regression tests.
Date: Sun, 20 Sep 2020 22:39:05 +0900
Message-ID: <20200920133905.GA18931@paquier.xyz> (raw)
In-Reply-To: <E1kJKA6-00072w-HO@gemulon.postgresql.org>
References: <E1kJKA6-00072w-HO@gemulon.postgresql.org>

On Fri, Sep 18, 2020 at 05:27:06PM +0000, Robert Haas wrote:
> pg_surgery: Try to stabilize regression tests.
> 
> According to buildfarm member sungazer, the behavior of VACUUM can be
> unstable in these tests even if we prevent autovacuum from running on
> the tables in question, apparently because even a manual vacuum can
> behave differently depending on whether anything else is running that
> holds back the global xmin. So use a temporary table instead, which
> as of commit a7212be8b9e0885ee769e8c55f99ef742cda487b enables
> vacuuming using a more aggressive cutoff.
> 
> This approach can't be used for the regression test that involves a
> materialized view, but that test doesn't run vacuum, so it shouldn't
> be prone to this particular failure mode.
> 
> Analysis by Tom Lane. Patch by Ashutosh Sharma and me.

rorqual has just reported an issue here:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=rorqual&dt=2020-09-20%2011%3A20%3A11

 vacuum freeze htab2;
+ERROR:  cannot freeze committed xmax 23257
+CONTEXT:  while scanning block 0 and offset 2 of relation "pg_temp_3.htab2"
 -- unused TIDs should be skipped
 select heap_force_kill('htab2'::regclass, ARRAY['(0, 2)']::tid[]);
-NOTICE:  skipping tid (0, 2) for relation "htab2" because it is marked unused 
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (3+ messages)  latest in thread

Message-ID: <20200920133905.GA18931@paquier.xyz>
Permalink:  ../20200920133905.GA18931@paquier.xyz/
Also on:    postgresql.org/message-id/20200920133905.GA18931@paquier.xyz

 · 

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: michael@paquier.xyz, rhaas@postgresql.org
  Subject: Re: pgsql: pg_surgery: Try to stabilize regression tests.
  In-Reply-To: <20200920133905.GA18931@paquier.xyz>
  References: <E1kJKA6-00072w-HO@gemulon.postgresql.org> <20200920133905.GA18931@paquier.xyz>

* 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