pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Disable vacuum page skipping in selected test cases.
Date: Wed, 20 Jan 2021 16:49:51 +0000
Message-ID: <E1l2Gg3-0003jI-26@gemulon.postgresql.org> (raw)

Disable vacuum page skipping in selected test cases.

By default VACUUM will skip pages that it can't immediately get
exclusive access to, which means that even activities as harmless
and unpredictable as checkpoint buffer writes might prevent a page
from being processed.  Ordinarily this is no big deal, but we have
a small number of test cases that examine the results of VACUUM's
processing and therefore will fail if the page of interest is skipped.
This seems to be the explanation for some rare buildfarm failures.
To fix, add the DISABLE_PAGE_SKIPPING option to the VACUUM commands
in tests where this could be an issue.

In passing, remove a duplicated query in pageinspect/sql/page.sql.

Back-patch as necessary (some of these cases are as old as v10).

Discussion: https://postgr.es/m/413923.1611006484@sss.pgh.pa.us

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a57dbfcda5535da31aedb16c76bc532a72a6e7a5

Modified Files
--------------
contrib/pageinspect/expected/page.out            | 16 +++-------------
contrib/pageinspect/sql/page.sql                 | 12 +++---------
contrib/pg_visibility/expected/pg_visibility.out |  6 +++---
contrib/pg_visibility/sql/pg_visibility.sql      |  6 +++---
4 files changed, 12 insertions(+), 28 deletions(-)



view thread (5+ messages)

Message-ID: <E1l2Gg3-0003jI-26@gemulon.postgresql.org>
Permalink:  ../E1l2Gg3-0003jI-26@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l2Gg3-0003jI-26@gemulon.postgresql.org

 · 

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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Disable vacuum page skipping in selected test cases.
  In-Reply-To: <E1l2Gg3-0003jI-26@gemulon.postgresql.org>
  References: <E1l2Gg3-0003jI-26@gemulon.postgresql.org>

* 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