pgsql: Fix incorrect format placeholders

2021-11-16 Thread Peter Eisentraut
Fix incorrect format placeholders Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/303d4eb1c548f1d0821e168a6e7c7e9bd02c8088 Modified Files -- src/bin/pg_basebackup/pg_recvlogical.c | 4 ++-- src/bin/pg_basebackup/receivelog.c | 2 +- 2 files changed, 3

pgsql: Remove global variable "LastRec" in xlog.c

2021-11-16 Thread Michael Paquier
Remove global variable "LastRec" in xlog.c This variable is used only by StartupXLOG() now, so let's make it local to simplify the code. Author: Amul Sul Reviewed-by: Tom Lane, Michael Paquier Discussion: https://postgr.es/m/caaj_b96qd023iterbrn9z7p2sandt3cyvgumo8rxwndvnn6...@mail.gmail.com Bra

pgsql: Fix headerscheck failure in replication/worker_internal.h

2021-11-16 Thread Alvaro Herrera
Fix headerscheck failure in replication/worker_internal.h Broken by 31c389d8de91 Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/ad26ee28250c4cd357a7420161a2be321c3dd536 Modified Files -- src/include/replication/worker_internal.h | 1 + 1 file changed, 1

pgsql: Move InitXLogInsert() call from InitXLOGAccess() to BaseInit().

2021-11-16 Thread Robert Haas
Move InitXLogInsert() call from InitXLOGAccess() to BaseInit(). At present, there is an undocumented coding rule that you must call RecoveryInProgress(), or do something else that results in a call to InitXLogInsert(), before trying to write WAL. Otherwise, the WAL construction buffers won't be in