Add enable_timeout_every() to fire the same timeout repeatedly.
authorRobert Haas <rhaas@postgresql.org>
Thu, 30 Sep 2021 16:04:50 +0000 (12:04 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 25 Oct 2021 15:33:44 +0000 (11:33 -0400)
commit732e6677a667c03b1551a855e3216644b0f125ec
treebeae396a87ef08adad6d3e76b1e238d07e0aa9b0
parent902a2c280012557b85c7e0fce3f6f0e355cb2d69
Add enable_timeout_every() to fire the same timeout repeatedly.

enable_timeout_at() and enable_timeout_after() can still be used
when you want to fire a timeout just once.

Patch by me, per a suggestion from Tom Lane.

Discussion: http://postgr.es/m/2992585.1632938816@sss.pgh.pa.us
Discussion: http://postgr.es/m/CA+TgmoYqSF5sCNrgTom9r3Nh=at4WmYFD=gsV-omStZ60S0ZUQ@mail.gmail.com
src/backend/utils/misc/timeout.c
src/include/utils/timeout.h