postgres/contrib/pageinspect/expected
Tomas Vondra 3668c1d506 Detect version mismatch in brin_page_items
Commit dae761a87e modified brin_page_items() to return the new "empty"
flag for each BRIN range. But the new output parameter was added in the
middle, which may cause crashes when using the new binary with old
function definition.

The ideal solution would be to introduce API versioning similar to what
pg_stat_statements does, but it's too late for that as PG17 was already
released (so we can't introduce a new extension version). We could do
something similar in brin_page_items() by checking the number of output
columns (and ignoring the new flag), but it doesn't seem very nice.

Instead, simply error out and suggest updating the extension to the
latest version. pageinspect is a superuser-only extension, and there's
not much reason to run an older version. Moreover, there's a precedent
for this approach in 691e8b2e18.

Reported by Ľuboslav Špilák, investigation and patch by me. Backpatch to
17, same as dae761a87e.

Reported-by: Ľuboslav Špilák
Reviewed-by: Michael Paquier, Hayato Kuroda, Peter Geoghegan
Backpatch-through: 17
Discussion: https://postgr.es/m/VI1PR02MB63331C3D90E2104FD12399D38A5D2@VI1PR02MB6333.eurprd02.prod.outlook.com
Discussion: https://postgr.es/m/flat/3385a58f-5484-49d0-b790-9a198a0bf236@vondra.me
2024-12-17 17:50:13 +01:00
..
brin.out Remove incidental md5() function use from test 2024-08-16 17:25:57 +02:00
btree.out Add bt_multi_page_stats() function to contrib/pageinspect. 2023-01-02 13:02:29 -05:00
checksum.out Add an explicit test to catch changes in checksumming calculations. 2020-03-08 15:09:14 -04:00
checksum_1.out Add an explicit test to catch changes in checksumming calculations. 2020-03-08 15:09:14 -04:00
gin.out pageinspect: Fix handling of all-zero pages 2022-04-14 15:08:03 +09:00
gist.out Introduce a new smgr bulk loading facility. 2024-02-23 16:10:51 +02:00
hash.out pageinspect: Fix failure with hash_bitmap_info() for partitioned indexes 2023-12-19 18:19:05 +09:00
oldextversions.out Detect version mismatch in brin_page_items 2024-12-17 17:50:13 +01:00
page.out Fix contrib/pageinspect's test for sequences. 2024-09-13 10:16:40 -05:00