postgresql/contrib/pageinspect
Nathan Bossart 70d1c664f4 Fix contrib/pageinspect's test for sequences.
I managed to break this test in two different ways in commit
05036a3155.

First, the output of the new call to tuple_data_split() on the test
sequence is dependent on endianness.  This is fixed by setting a
special start value for the test sequence that produces the same
output regardless of the endianness of the machine.

Second, on versions older than v15, the new test case fails under
"force_parallel_mode = regress" with the following error:

	ERROR:  cannot access temporary tables during a parallel operation

This is because pageinspect's disk-accessing functions are
incorrectly marked PARALLEL SAFE on versions older than v15 (see
commit aeaaf520f4 for details).  This one is fixed by changing the
test sequence to be permanent.  The only reason it was previously
marked temporary was to avoid needing a DROP SEQUENCE command at
the end of the test.  Unlike some other tests in this file, the use
of a permanent sequence here shouldn't result in any test
instability like what was fixed by commit e2933a6e11.

Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/ZuOKOut5hhDlf_bP%40nathan
Backpatch-through: 12
2024-09-13 10:16:40 -05:00
..
expected Fix contrib/pageinspect's test for sequences. 2024-09-13 10:16:40 -05:00
sql Fix contrib/pageinspect's test for sequences. 2024-09-13 10:16:40 -05:00
.gitignore
brinfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
btreefuncs.c
fsmfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
ginfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
gistfuncs.c Use TupleDescAttr macro consistently 2024-07-02 13:41:47 +12:00
hashfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
heapfuncs.c Reintroduce support for sequences in pgstattuple and pageinspect. 2024-09-12 16:31:29 -05:00
Makefile
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
pageinspect--1.0--1.1.sql
pageinspect--1.1--1.2.sql
pageinspect--1.2--1.3.sql
pageinspect--1.3--1.4.sql
pageinspect--1.4--1.5.sql
pageinspect--1.5--1.6.sql
pageinspect--1.5.sql
pageinspect--1.6--1.7.sql
pageinspect--1.7--1.8.sql
pageinspect--1.8--1.9.sql
pageinspect--1.9--1.10.sql
pageinspect--1.10--1.11.sql
pageinspect--1.11--1.12.sql
pageinspect.control
pageinspect.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
rawpage.c Update copyright for 2024 2024-01-03 20:49:05 -05:00