pgsql: pgbench: Correct log level of message output when socket wait me

2021-09-29 Thread Fujii Masao
pgbench: Correct log level of message output when socket wait method fails. The failure of socket wait method like "select()" doesn't terminate pgbench. So the log level of error message when that failure happens should be ERROR. But previously FATAL was used in that case. Back-patch to v13 where

pgsql: pgbench: Correct log level of message output when socket wait me

2021-09-29 Thread Fujii Masao
pgbench: Correct log level of message output when socket wait method fails. The failure of socket wait method like "select()" doesn't terminate pgbench. So the log level of error message when that failure happens should be ERROR. But previously FATAL was used in that case. Back-patch to v13 where

pgsql: pgbench: Correct log level of message output when socket wait me

2021-09-29 Thread Fujii Masao
pgbench: Correct log level of message output when socket wait method fails. The failure of socket wait method like "select()" doesn't terminate pgbench. So the log level of error message when that failure happens should be ERROR. But previously FATAL was used in that case. Back-patch to v13 where

pgsql: pgbench: Fix handling of socket errors during benchmark.

2021-09-29 Thread Fujii Masao
pgbench: Fix handling of socket errors during benchmark. Previously socket errors such as invalid socket or socket wait method failures during benchmark caused pgbench to exit with status 0. Instead, errors during the run should result in exit status 2. Back-patch to v12 where pgbench started rep

pgsql: pgbench: Fix handling of socket errors during benchmark.

2021-09-29 Thread Fujii Masao
pgbench: Fix handling of socket errors during benchmark. Previously socket errors such as invalid socket or socket wait method failures during benchmark caused pgbench to exit with status 0. Instead, errors during the run should result in exit status 2. Back-patch to v12 where pgbench started rep

pgsql: pgbench: Fix handling of socket errors during benchmark.

2021-09-29 Thread Fujii Masao
pgbench: Fix handling of socket errors during benchmark. Previously socket errors such as invalid socket or socket wait method failures during benchmark caused pgbench to exit with status 0. Instead, errors during the run should result in exit status 2. Back-patch to v12 where pgbench started rep

pgsql: pgbench: Fix handling of socket errors during benchmark.

2021-09-29 Thread Fujii Masao
pgbench: Fix handling of socket errors during benchmark. Previously socket errors such as invalid socket or socket wait method failures during benchmark caused pgbench to exit with status 0. Instead, errors during the run should result in exit status 2. Back-patch to v12 where pgbench started rep

pgsql: doc: PG 14 relnotes, improve cache invalidation wording

2021-09-29 Thread Bruce Momjian
doc: PG 14 relnotes, improve cache invalidation wording Reported-by: Simon Riggs (privately) Backpatch-through: 14 only Branch -- REL_14_STABLE Details --- https://git.postgresql.org/pg/commitdiff/4f2c75316b2b767a838aa9fefb6e4944ace34f23 Modified Files -- doc/src/sgml/rele

pgsql: Fix WAL replay in presence of an incomplete record

2021-09-29 Thread Alvaro Herrera
Fix WAL replay in presence of an incomplete record Physical replication always ships WAL segment files to replicas once they are complete. This is a problem if one WAL record is split across a segment boundary and the primary server crashes before writing down the segment with the next portion of

pgsql: Fix WAL replay in presence of an incomplete record

2021-09-29 Thread Alvaro Herrera
Fix WAL replay in presence of an incomplete record Physical replication always ships WAL segment files to replicas once they are complete. This is a problem if one WAL record is split across a segment boundary and the primary server crashes before writing down the segment with the next portion of

pgsql: Fix WAL replay in presence of an incomplete record

2021-09-29 Thread Alvaro Herrera
Fix WAL replay in presence of an incomplete record Physical replication always ships WAL segment files to replicas once they are complete. This is a problem if one WAL record is split across a segment boundary and the primary server crashes before writing down the segment with the next portion of

pgsql: Fix WAL replay in presence of an incomplete record

2021-09-29 Thread Alvaro Herrera
Fix WAL replay in presence of an incomplete record Physical replication always ships WAL segment files to replicas once they are complete. This is a problem if one WAL record is split across a segment boundary and the primary server crashes before writing down the segment with the next portion of

pgsql: Fix WAL replay in presence of an incomplete record

2021-09-29 Thread Alvaro Herrera
Fix WAL replay in presence of an incomplete record Physical replication always ships WAL segment files to replicas once they are complete. This is a problem if one WAL record is split across a segment boundary and the primary server crashes before writing down the segment with the next portion of

pgsql: Fix WAL replay in presence of an incomplete record

2021-09-29 Thread Alvaro Herrera
Fix WAL replay in presence of an incomplete record Physical replication always ships WAL segment files to replicas once they are complete. This is a problem if one WAL record is split across a segment boundary and the primary server crashes before writing down the segment with the next portion of

pgsql: Fix WAL replay in presence of an incomplete record

2021-09-29 Thread Alvaro Herrera
Fix WAL replay in presence of an incomplete record Physical replication always ships WAL segment files to replicas once they are complete. This is a problem if one WAL record is split across a segment boundary and the primary server crashes before writing down the segment with the next portion of

pgsql: psql: Add various tests

2021-09-29 Thread Peter Eisentraut
psql: Add various tests Add tests for psql features - AUTOCOMMIT - ON_ERROR_ROLLBACK - ECHO errors Reviewed-by: Fabien COELHO Discussion: https://www.postgresql.org/message-id/6954328d-96f2-77f7-735f-7ce493a40949%40enterprisedb.com Branch -- master Details --- https://git.postgresql.

Re: pgsql: Fix WAL replay in presence of an incomplete record

2021-09-29 Thread Michael Paquier
Hi Alvaro, On Wed, Sep 29, 2021 at 02:40:29PM +, Alvaro Herrera wrote: > Fix WAL replay in presence of an incomplete record > [...] > src/test/recovery/t/026_overwrite_contrecord.pl | 207 > src/test/recovery/t/idiosyncratic_copy | 20 +++ The builfarm is sayi