pgsql: Fix a recently-introduced race condition in LISTEN/NOTIFY handli

2020-11-28 Thread Tom Lane
Fix a recently-introduced race condition in LISTEN/NOTIFY handling. Commit 566372b3d fixed some race conditions involving concurrent SimpleLruTruncate calls, but it introduced new ones in async.c. A newly-listening backend could attempt to read Notify SLRU pages that were in process of being trunc

pgsql: Fix a recently-introduced race condition in LISTEN/NOTIFY handli

2020-11-28 Thread Tom Lane
Fix a recently-introduced race condition in LISTEN/NOTIFY handling. Commit 566372b3d fixed some race conditions involving concurrent SimpleLruTruncate calls, but it introduced new ones in async.c. A newly-listening backend could attempt to read Notify SLRU pages that were in process of being trunc

pgsql: Fix a recently-introduced race condition in LISTEN/NOTIFY handli

2020-11-28 Thread Tom Lane
Fix a recently-introduced race condition in LISTEN/NOTIFY handling. Commit 566372b3d fixed some race conditions involving concurrent SimpleLruTruncate calls, but it introduced new ones in async.c. A newly-listening backend could attempt to read Notify SLRU pages that were in process of being trunc

pgsql: Fix a recently-introduced race condition in LISTEN/NOTIFY handli

2020-11-28 Thread Tom Lane
Fix a recently-introduced race condition in LISTEN/NOTIFY handling. Commit 566372b3d fixed some race conditions involving concurrent SimpleLruTruncate calls, but it introduced new ones in async.c. A newly-listening backend could attempt to read Notify SLRU pages that were in process of being trunc

pgsql: Fix a recently-introduced race condition in LISTEN/NOTIFY handli

2020-11-28 Thread Tom Lane
Fix a recently-introduced race condition in LISTEN/NOTIFY handling. Commit 566372b3d fixed some race conditions involving concurrent SimpleLruTruncate calls, but it introduced new ones in async.c. A newly-listening backend could attempt to read Notify SLRU pages that were in process of being trunc

pgsql: Fix a recently-introduced race condition in LISTEN/NOTIFY handli

2020-11-28 Thread Tom Lane
Fix a recently-introduced race condition in LISTEN/NOTIFY handling. Commit 566372b3d fixed some race conditions involving concurrent SimpleLruTruncate calls, but it introduced new ones in async.c. A newly-listening backend could attempt to read Notify SLRU pages that were in process of being trunc

pgsql: Fix a recently-introduced race condition in LISTEN/NOTIFY handli

2020-11-28 Thread Tom Lane
Fix a recently-introduced race condition in LISTEN/NOTIFY handling. Commit 566372b3d fixed some race conditions involving concurrent SimpleLruTruncate calls, but it introduced new ones in async.c. A newly-listening backend could attempt to read Notify SLRU pages that were in process of being trunc

pgsql: Clean up after tests in src/test/locale/.

2020-11-28 Thread Tom Lane
Clean up after tests in src/test/locale/. Oversight in 257836a75, which added these tests. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/b90a7fe15f78b1e2513cbcb27a33f4adc47bcd3d Modified Files -- src/test/locale/Makefile | 1 + 1 file changed, 1 insert

pgsql: Retry initial slurp_file("current_logfiles"), in test 004_logrot

2020-11-28 Thread Noah Misch
Retry initial slurp_file("current_logfiles"), in test 004_logrotate.pl. Buildfarm member topminnow failed when the test script attempted this before the syslogger would have created the file. Back-patch to v12, which introduced the test. Branch -- REL_12_STABLE Details --- https://git.p

pgsql: Retry initial slurp_file("current_logfiles"), in test 004_logrot

2020-11-28 Thread Noah Misch
Retry initial slurp_file("current_logfiles"), in test 004_logrotate.pl. Buildfarm member topminnow failed when the test script attempted this before the syslogger would have created the file. Back-patch to v12, which introduced the test. Branch -- master Details --- https://git.postgres

pgsql: Retry initial slurp_file("current_logfiles"), in test 004_logrot

2020-11-28 Thread Noah Misch
Retry initial slurp_file("current_logfiles"), in test 004_logrotate.pl. Buildfarm member topminnow failed when the test script attempted this before the syslogger would have created the file. Back-patch to v12, which introduced the test. Branch -- REL_13_STABLE Details --- https://git.p