pgsql: Normalize heap_prepare_freeze_tuple argument name.

2022-03-11 Thread Peter Geoghegan
Normalize heap_prepare_freeze_tuple argument name. We called the argument totally_frozen in its function prototype as well as in code comments, even though totally_frozen_p was used in the function definition. Standardize on totally_frozen. Branch -- master Details --- https://git.postg

pgsql: Bump XLOG_PAGE_MAGIC due to the addition of wal_compression=zstd

2022-03-11 Thread Michael Paquier
Bump XLOG_PAGE_MAGIC due to the addition of wal_compression=zstd While on it, fix a thinko in the docs, introduced by the same commit. Oversights in e953732. Reported-by: Justin Pryzby Discussion: https://postgr.es/m/[email protected] Branch -- master Details --- htt

pgsql: Add API of sorts for transition table handling in trigger.c

2022-03-11 Thread Alvaro Herrera
Add API of sorts for transition table handling in trigger.c Preparatory patch for further additions in this area, particularly to allow MERGE to have separate transition tables for each action. Author: Pavan Deolasee Reviewed-by: Álvaro Herrera Discussion: https://postgr.es/m/caboikdnj+8hej5d8

pgsql: Restore the previous semantics of get_constraint_index().

2022-03-11 Thread Tom Lane
Restore the previous semantics of get_constraint_index(). Commit 8b069ef5d changed this function to look at pg_constraint.conindid rather than searching pg_depend. That was a good performance improvement, but it failed to preserve the exact semantics. The old code would only return an index that

pgsql: Restore the previous semantics of get_constraint_index().

2022-03-11 Thread Tom Lane
Restore the previous semantics of get_constraint_index(). Commit 8b069ef5d changed this function to look at pg_constraint.conindid rather than searching pg_depend. That was a good performance improvement, but it failed to preserve the exact semantics. The old code would only return an index that

pgsql: pg_basebackup: Clean up some bogus file extension tests.

2022-03-11 Thread Robert Haas
pg_basebackup: Clean up some bogus file extension tests. Justin Pryzby Discussion: http://postgr.es/m/[email protected] Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/d6f1cdeb9a9ea227f87a2156e3a1ed94706b2193 Modified Files -- src/bi

pgsql: pg_basebackup: Avoid unclean failure with server-compression and

2022-03-11 Thread Robert Haas
pg_basebackup: Avoid unclean failure with server-compression and -D -. Fail with a suitable error message instead. We can't inject the backup manifest into the output tarfile without decompressing it, and if we did that, we'd have to recompress the tarfile afterwards to produce the result the user