postgresql/src/backend/utils
Magnus Hagander aaf0432572 Add functions to wait for backend termination
This adds a function, pg_wait_for_backend_termination(), and a new
timeout argument to pg_terminate_backend(), which will wait for the
backend to actually terminate (with or without signaling it to do so
depending on which function is called). The default behaviour of
pg_terminate_backend() remains being timeout=0 which does not waiting.
For pg_wait_for_backend_termination() the default wait is 5 seconds.

Author: Bharath Rupireddy
Reviewed-By: Fujii Masao, David Johnston, Muhammad Usama,
             Hou Zhijie, Magnus Hagander
Discussion: https://postgr.es/m/CALj2ACUBpunmyhYZw-kXCYs5NM+h6oG_7Df_Tn4mLmmUQifkqA@mail.gmail.com
2021-04-08 11:40:54 +02:00
..
activity Add functions to wait for backend termination 2021-04-08 11:40:54 +02:00
adt Fix typo in jsonfuncs.c. 2021-04-08 10:24:00 +05:30
cache Clean up treatment of missing default and CHECK-constraint records. 2021-04-06 10:34:39 -04:00
error Add csvlog output for the new query_id value 2021-04-07 22:30:30 -04:00
fmgr Fix broken ruleutils support for function TRANSFORM clauses. 2021-01-25 13:03:43 -05:00
hash Update copyright for 2021 2021-01-02 13:06:25 -05:00
init Add function to log the memory contexts of specified backend process. 2021-04-06 13:44:15 +09:00
mb Add 'noError' argument to encoding conversion functions. 2021-04-01 11:45:22 +03:00
misc Add wraparound failsafe to VACUUM. 2021-04-07 12:37:45 -07:00
mmgr Add function to log the memory contexts of specified backend process. 2021-04-06 13:44:15 +09:00
resowner Refactor HMAC implementations 2021-04-03 17:30:49 +09:00
sort Use sort_template.h for qsort_tuple() and qsort_ssup(). 2021-03-03 17:02:32 +13:00
time Sanitize the term "combo CID" in code comments 2021-03-25 16:08:03 +09:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
errcodes.txt Rethink SQLSTATE code for ERRCODE_IDLE_SESSION_TIMEOUT. 2021-01-11 14:53:42 -05:00
Gen_dummy_probes.pl Update copyright for 2021 2021-01-02 13:06:25 -05:00
Gen_dummy_probes.sed Update copyright for 2021 2021-01-02 13:06:25 -05:00
Gen_fmgrtab.pl Update copyright for 2021 2021-01-02 13:06:25 -05:00
generate-errcodes.pl Update copyright for 2021 2021-01-02 13:06:25 -05:00
Makefile Split wait event related code from pgstat.[ch] into wait_event.[ch]. 2021-04-02 20:02:26 -07:00
probes.d Update copyright for 2021 2021-01-02 13:06:25 -05:00