diff options
author | Stephen Frost <sfrost@snowman.net> | 2021-03-30 12:52:56 -0400 |
---|---|---|
committer | Stephen Frost <sfrost@snowman.net> | 2021-03-30 12:52:56 -0400 |
commit | 4753ef37e0eda4ba0af614022d18fcbc5a946cc9 (patch) | |
tree | 6a0986976b4e9b85f1525734e87b95a91f268998 /contrib/postgres_fdw/postgres_fdw.h | |
parent | 54bb91c30e3964fd81059e6b02e377cc9dd2d64c (diff) | |
download | postgresql-4753ef37e0eda4ba0af614022d18fcbc5a946cc9.tar.gz postgresql-4753ef37e0eda4ba0af614022d18fcbc5a946cc9.zip |
Use a WaitLatch for vacuum/autovacuum sleeping
Instead of using pg_usleep() in vacuum_delay_point(), use a WaitLatch.
This has the advantage that we will realize if the postmaster has been
killed since the last time we decided to sleep while vacuuming.
Reviewed-by: Thomas Munro
Discussion: https://postgr.es/m/CAFh8B=kcdk8k-Y21RfXPu5dX=bgPqJ8TC3p_qxR_ygdBS=JN5w@mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions