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 <[email protected]>
Author: Melanie Plageman <[email protected]>
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(-)

Reply via email to