Fix test failure with wal_level=minimal.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 5abca4b1cd7193d6a5c8235c97eb240312190bcb
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2021-01-13T18:58:51Z
Releases: 14.0
Fix test failure with wal_level=minimal.

The newly-added gist pageinspect test prints the LSNs of GiST pages,
expecting them all to be 1 (GistBuildLSN). But with wal_level=minimal,
they got updated by the whole-relation WAL-logging at commit. Fix by
wrapping the problematic tests in the same transaction with the CREATE
INDEX.

Per buildfarm failure on thorntail.

Discussion: https://www.postgresql.org/message-id/3B4F97E5-40FB-4142-8CAA-B301CDFBF982%40iki.fi

Files

PathChange+/−
contrib/pageinspect/expected/gist.out modified +10 −0
contrib/pageinspect/sql/gist.sql modified +12 −0

Discussion