From 73797b7884ee1722127f27ecfcede99367139dc0 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 28 Feb 2018 11:46:26 -0500 Subject: [PATCH] Document LWTRANCHE_PARALLEL_HASH_JOIN. Thomas Munro Discussion: http://postgr.es/m/CAEepm=3g1hhbFzYkR_QT9RmBvsGX4UaeCtX-4Js8OOEMmFeaSQ@mail.gmail.com --- doc/src/sgml/monitoring.sgml | 7 ++++++- src/backend/storage/lmgr/lwlock.c | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 82c015806e..3bc4de57d5 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -845,7 +845,7 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser - LWLock + LWLock ShmemIndexLock Waiting to find or allocate space in shared memory. @@ -1121,6 +1121,11 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser Waiting to choose the next subplan during Parallel Append plan execution. + + parallel_hash_join + Waiting to allocate or exchange a chunk of memory or update + counters during Parallel Hash plan execution. + Lock relation diff --git a/src/backend/storage/lmgr/lwlock.c b/src/backend/storage/lmgr/lwlock.c index 233606b414..a6fda81feb 100644 --- a/src/backend/storage/lmgr/lwlock.c +++ b/src/backend/storage/lmgr/lwlock.c @@ -520,6 +520,7 @@ RegisterLWLockTranches(void) "shared_tuplestore"); LWLockRegisterTranche(LWTRANCHE_TBM, "tbm"); LWLockRegisterTranche(LWTRANCHE_PARALLEL_APPEND, "parallel_append"); + LWLockRegisterTranche(LWTRANCHE_PARALLEL_HASH_JOIN, "parallel_hash_join"); /* Register named tranches. */ for (i = 0; i < NamedLWLockTrancheRequests; i++)