agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Melanie Plageman <melanieplageman@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Stabilize plancache test against on-access VM setting
Date: Tue, 21 Apr 2026 18:39:13 +0000
Message-ID: <E1wFG08-0022id-1W@gemulon.postgresql.org> (raw)

Stabilize plancache test against on-access VM setting

Since b46e1e54d07 allowed setting the VM on-access and 378a21618 set
pd_prune_xid on INSERT, the testing of generic/custom plans in
src/test/regress/sql/plancache.sql was destabilized.

One of the queries of test_mode could have set the pages all-visible and
if autovacuum/autoanalyze ran and updated pg_class.relallvisible, it
would affect whether we got an index-only or sequential scan.

Preclude this by disabling autovacuum and autoanalyze for test_mode and
carefully sequencing when ANALYZE is run.

Reported-by: Alexander Lakhin <exclusion@gmail.com>
Author: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/71277259-264e-4983-a201-938b404049d7%40gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/85ae8ab05334f335e3b97d4a4b6309f926eda39c

Modified Files
--------------
src/test/regress/expected/plancache.out | 8 ++++++--
src/test/regress/sql/plancache.sql      | 9 +++++++--
2 files changed, 13 insertions(+), 4 deletions(-)



Message-ID: <E1wFG08-0022id-1W@gemulon.postgresql.org>
Permalink:  ../E1wFG08-0022id-1W@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wFG08-0022id-1W@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: melanieplageman@gmail.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Stabilize plancache test against on-access VM setting
  In-Reply-To: <E1wFG08-0022id-1W@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox