Stabilize test of BRIN parallel create
authorTomas Vondra <tomas.vondra@postgresql.org>
Tue, 16 Apr 2024 15:31:03 +0000 (17:31 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Tue, 16 Apr 2024 15:34:48 +0000 (17:34 +0200)
commit4d916dd876c3d9a4ceff5a0c54c5c58a0d1052e3
tree136869bea9dce52f431b9d8c3b8a26124546ab22
parent03107b4eda7f2946bb78308cb088a513b718c793
Stabilize test of BRIN parallel create

The test for parallel create of BRIN indexes added by commit 8225c2fd40
happens to be unstable - a background transaction (e.g. auto-analyze)
may hold back global xmin for the initial VACUUM / CREATE INDEX. If the
cleanup happens before the next CREATE INDEX, the indexes will not be
exactly the same.

This is the same issue as e2933a6e11, so fix it the same way by making
the table TEMPORARY, which uses an up-to-date cutoff xmin that is not
held back by other processes.

Reported by Alexander Lakhin, who also suggested the fix.

Author: Alexander Lakhin
Discussion: https://postgr.es/m/b58901cd-a7cc-29c6-e2b1-e3d7317c3c69@gmail.com
Discussion: https://postgr.es/m/2892135.1668976646@sss.pgh.pa.us
contrib/pageinspect/expected/brin.out
contrib/pageinspect/sql/brin.sql