pgsql: Add enable_timeout_every() to fire the same timeout repeatedly.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add enable_timeout_every() to fire the same timeout repeatedly.
Date: 2021-10-25 15:36:27
Message-ID: E1mf21T-0000ed-72@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/732e6677a667c03b1551a855e3216644b0f125ec

Modified Files
--------------
src/backend/utils/misc/timeout.c | 65 ++++++++++++++++++++++++++++++++++++----
src/include/utils/timeout.h | 7 +++--
2 files changed, 65 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2021-10-25 15:55:19 pgsql: Report progress of startup operations that take a long time.
Previous Message Robert Haas 2021-10-25 15:03:37 pgsql: Remove useless code from CreateReplicationSlot.