Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite3e29ce

Browse files
committed
Make autovacuum launcher more responsive to pg_log_backend_memory_contexts().
Previously when pg_log_backend_memory_contexts() sent the request tothe autovacuum launcher, it could take more than several seconds tolog its memory contexts. Because the function (HandleAutoVacLauncherInterrupts)to process any new interrupts that autovacuum launcher receiveddidn't handle the request for logging of memory contexts. This commit changesthe function so that it handles the request, to make autovacuum launchermore responsitve to pg_log_backend_memory_contexts().Back-patch to v14 where pg_log_backend_memory_contexts() was added.Author: Koyu TanigawaReviewed-by: Bharath Rupireddy, Atsushi TorikoshiDiscussion:https://postgr.es/m/0aae3e074face409b35153451be5cc11@oss.nttdata.com
1 parent292698f commite3e29ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/backend/postmaster/autovacuum.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,10 @@ HandleAutoVacLauncherInterrupts(void)
836836
if (ProcSignalBarrierPending)
837837
ProcessProcSignalBarrier();
838838

839+
/* Perform logging of memory contexts of this process */
840+
if (LogMemoryContextPending)
841+
ProcessLogMemoryContextInterrupt();
842+
839843
/* Process sinval catchup interrupts that happened while sleeping */
840844
ProcessCatchupInterrupt();
841845
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp