postgresql/src/backend/postmaster
Daniel Gustafsson 0319b306e8 Fix vacuum_cost_delay check for balance calculation.
Commit 1021bd6a89 excluded autovacuum workers from cost-limit balance
calculations when per-relation options were set.  The code checks for
limit and cost_delay being greater than zero, but since cost_delay can
be set to -1 the test needs to check for greater than or zero.

Backpatch to all supported branches since 1021bd6a89 was backpatched
all the way at the time.

Author: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAD21AoBS7o6Ljt_vfqPQPf67AhzKu3fR0iqk8B=vVYczMugKMQ@mail.gmail.com
Backpatch-through: v11 (all supported branches)
2023-04-25 13:54:10 +02:00
..
autovacuum.c Fix vacuum_cost_delay check for balance calculation. 2023-04-25 13:54:10 +02:00
auxprocess.c Revert the addition of GetMaxBackends() and related stuff. 2022-04-12 14:45:23 -04:00
bgworker.c Fix grammar in error message 2022-09-15 11:43:00 +07:00
bgwriter.c pgstat: rename some pgstat_send_* functions to pgstat_report_*. 2022-04-06 14:08:57 -07:00
checkpointer.c pgstat: store statistics in shared memory. 2022-04-06 21:29:46 -07:00
fork_process.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
interrupt.c pgstat: store statistics in shared memory. 2022-04-06 21:29:46 -07:00
Makefile pgstat: move pgstat.c to utils/activity. 2022-04-06 21:29:46 -07:00
pgarch.c Rework shutdown callback of archiver modules 2022-10-19 14:07:01 +09:00
postmaster.c Small tidyup for commit d41a178b, part II. 2023-03-17 14:46:03 +13:00
shell_archive.c Rework shutdown callback of archiver modules 2022-10-19 14:07:01 +09:00
startup.c Un-revert "Disable STARTUP_PROGRESS_TIMEOUT in standby mode." 2023-02-10 16:27:05 -05:00
syslogger.c Use STDOUT/STDERR_FILENO in most of syslogger. 2022-07-18 17:22:36 -07:00
walwriter.c Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00