git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: fb310f1) | patch
Add functions to wait for backend termination
Thu, 8 Apr 2021 09:32:14 +0000 (11:32 +0200)
Thu, 8 Apr 2021 09:40:54 +0000 (11:40 +0200)
commit aaf043257205ec523f1ba09a3856464d17cf2281
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
doc/src/sgml/func.sgml diff | blob | blame | history
doc/src/sgml/monitoring.sgml diff | blob | blame | history
src/backend/catalog/system_views.sql diff | blob | blame | history
src/backend/storage/ipc/signalfuncs.c diff | blob | blame | history
src/backend/utils/activity/wait_event.c diff | blob | blame | history
src/include/catalog/pg_proc.dat diff | blob | blame | history
src/include/utils/wait_event.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /