postgresql/src/backend
Michael Paquier 38cc085464 Simplify main waiting loop of the archiver process
As coded, the timeout given to WaitLatch() was always equal to
PGARCH_AUTOWAKE_INTERVAL, as time() was called two times repeatedly.
This simplification could have been done in d75288f.

While on it, this adjusts a comment in pgarch.c to describe the archiver
in a more neutral way.

Author: Sravan Kumar, Nathan Bossart
Reviewed-by: Kyotaro Horiguchi
Discussion: https://postgr.es/m/CA+=NbjjqYE9-Lnw7H7DAiS5jebmoMikwZQb_sBP7kgBCn9q6Hg@mail.gmail.com
2023-02-01 15:46:04 +09:00
..
access Remove dead NoMovementScanDirection code 2023-02-01 10:52:41 +13:00
backup Improve TimestampDifferenceMilliseconds to cope with overflow sanely. 2023-01-26 17:09:12 -05:00
bootstrap Update copyright for 2023 2023-01-02 15:00:37 -05:00
catalog Allow REPLICA IDENTITY to be set on an index that's not (yet) valid. 2023-01-21 13:10:29 -05:00
commands Remove dead NoMovementScanDirection code 2023-02-01 10:52:41 +13:00
executor Remove dead NoMovementScanDirection code 2023-02-01 10:52:41 +13:00
foreign Update copyright for 2023 2023-01-02 15:00:37 -05:00
jit Fix typos in comments, code and documentation 2023-01-03 16:26:14 +09:00
lib Fix ILIST_DEBUG build 2023-01-18 10:26:15 -08:00
libpq Support the same patterns for pg-user in pg_ident.conf as in pg_hba.conf 2023-01-20 11:21:55 +09:00
main Update copyright for 2023 2023-01-02 15:00:37 -05:00
nodes Generate code for query jumbling through gen_node_support.pl 2023-01-31 15:24:05 +09:00
optimizer Remove dead NoMovementScanDirection code 2023-02-01 10:52:41 +13:00
parser Make Vars be outer-join-aware. 2023-01-30 13:16:20 -05:00
partitioning Update copyright for 2023 2023-01-02 15:00:37 -05:00
po Update copyright for 2023 2023-01-02 15:00:37 -05:00
port Update copyright for 2023 2023-01-02 15:00:37 -05:00
postmaster Simplify main waiting loop of the archiver process 2023-02-01 15:46:04 +09:00
regex Update copyright for 2023 2023-01-02 15:00:37 -05:00
replication Rename GUC logical_decoding_mode to logical_replication_mode. 2023-01-30 08:02:08 +05:30
rewrite Make Vars be outer-join-aware. 2023-01-30 13:16:20 -05:00
snowball Update copyright for 2023 2023-01-02 15:00:37 -05:00
statistics Update copyright for 2023 2023-01-02 15:00:37 -05:00
storage Avoid type cheats for invalid dsa_handles and dshash_table_handles. 2023-01-25 11:48:38 -05:00
tcop Use WaitEventSet API for postmaster's event loop. 2023-01-12 16:32:20 +13:00
tsearch Fix ts_headline() to handle ORs and phrase queries more honestly. 2023-01-19 16:21:44 -05:00
utils Make Vars be outer-join-aware. 2023-01-30 13:16:20 -05:00
.gitignore
common.mk
Makefile Don't install postmaster symlink anymore 2023-01-26 11:33:01 +01:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
nls.mk