pgsql: Remove overzealous MultiXact freeze assertion.

2022-12-26 Thread Peter Geoghegan
Remove overzealous MultiXact freeze assertion. When VACUUM determines that an existing MultiXact should use a freeze plan that sets xmax to InvalidTransactionId, the original Multi may or may not be before OldestMxact. Remove an incorrect assertion that expected it to always be from before

pgsql: Add custom filtering rules to the TAP tests of pg_upgrade

2022-12-26 Thread Michael Paquier
Add custom filtering rules to the TAP tests of pg_upgrade 002_pg_upgrade.pl gains support for a new environment variable called "filter_rules", that can be used to point to a file that includes a set of custom regular expressions that would be applied to the dumps of the origin and target

pgsql: Fix incorrect copy-pasto in error message of pg_waldump.c

2022-12-26 Thread Michael Paquier
Fix incorrect copy-pasto in error message of pg_waldump.c The error message used on fclose() failure was incorrect, so fix it. Oversight in d497093, that I have somehow managed to miss. Branch -- master Details ---

pgsql: pg_waldump: Add --save-fullpage=PATH to save full page images fr

2022-12-26 Thread Michael Paquier
pg_waldump: Add --save-fullpage=PATH to save full page images from WAL records This option extracts (potentially decompressing) full-page images included in WAL records into a given target directory. These images are subject to the same filtering rules as the normal display of the WAL records,