pgsql: Stabilize btree_gist test against on-access VM setting - Mailing list pgsql-committers

From Melanie Plageman
Subject pgsql: Stabilize btree_gist test against on-access VM setting
Date
Msg-id E1wFIjv-0023qL-19@gemulon.postgresql.org
Whole thread
List pgsql-committers
Stabilize btree_gist test against on-access VM setting

The btree_gist enum test expects a bitmap heap scan. Since b46e1e54d07
enabled setting the VM during on-access pruning and 378a21618 set
pd_prune_xid on INSERT, scans of enumtmp may set pages all-visible.
If autovacuum or autoanalyze then updates pg_class.relallvisible, the
planner could choose an index-only scan instead.

Make the enumtmp a temp table to exclude it from autovacuum/autoanalyze.

Reported-by: Alexander Lakhin <exclusion@gmail.com>
Author: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/46733d68-aec0-4d09-8120-4c66b87047a4%40gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/62407d26b7c9e619ed696fced88fdacc5d1ae522

Modified Files
--------------
contrib/btree_gist/expected/enum.out | 2 +-
contrib/btree_gist/sql/enum.sql      | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Melanie Plageman
Date:
Subject: pgsql: Stabilize plancache test against on-access VM setting
Next
From: Melanie Plageman
Date:
Subject: pgsql: bufmgr: use I/O stats arguments in FlushUnlockedBuffer()