mirror of
https://github.com/postgres/postgres.git
synced 2025-12-22 17:42:17 +03:00
Improve the naming of Parallel Hash Join phases.
* Commit3048898edropped -ING from PHJ wait event names. Update the corresponding barrier phases names to match. * Rename the "DONE" phases to "FREE". That's symmetrical with "ALLOCATE", and names the activity that actually happens in that phase (as we do for the other phases) rather than a state. The bug fixed by commit8d578b9bmight have been more obvious with this name. * Rename the batch/bucket growth barriers' "ALLOCATE" phases to "REALLOCATE", a better description of what they do. * Update the high level comments about phases to highlight phases are executed by a single process with an asterisk (mostly memory management phases). No behavior change, as this is just improving internal identifiers. The only user-visible sign of this is that a couple of wait events' display names change from "...Allocate" to "...Reallocate" in pg_stat_activity, to stay in sync with the internal names. Reviewed-by: Melanie Plageman <melanieplageman@gmail.com> Discussion: https://postgr.es/m/CA%2BhUKG%2BMDpwF2Eo2LAvzd%3DpOh81wUTsrwU1uAwR-v6OGBB6%2B7g%40mail.gmail.com
This commit is contained in:
@@ -367,9 +367,6 @@ pgstat_get_wait_ipc(WaitEventIPC w)
|
||||
case WAIT_EVENT_HASH_BUILD_HASH_OUTER:
|
||||
event_name = "HashBuildHashOuter";
|
||||
break;
|
||||
case WAIT_EVENT_HASH_GROW_BATCHES_ALLOCATE:
|
||||
event_name = "HashGrowBatchesAllocate";
|
||||
break;
|
||||
case WAIT_EVENT_HASH_GROW_BATCHES_DECIDE:
|
||||
event_name = "HashGrowBatchesDecide";
|
||||
break;
|
||||
@@ -379,15 +376,18 @@ pgstat_get_wait_ipc(WaitEventIPC w)
|
||||
case WAIT_EVENT_HASH_GROW_BATCHES_FINISH:
|
||||
event_name = "HashGrowBatchesFinish";
|
||||
break;
|
||||
case WAIT_EVENT_HASH_GROW_BATCHES_REALLOCATE:
|
||||
event_name = "HashGrowBatchesReallocate";
|
||||
break;
|
||||
case WAIT_EVENT_HASH_GROW_BATCHES_REPARTITION:
|
||||
event_name = "HashGrowBatchesRepartition";
|
||||
break;
|
||||
case WAIT_EVENT_HASH_GROW_BUCKETS_ALLOCATE:
|
||||
event_name = "HashGrowBucketsAllocate";
|
||||
break;
|
||||
case WAIT_EVENT_HASH_GROW_BUCKETS_ELECT:
|
||||
event_name = "HashGrowBucketsElect";
|
||||
break;
|
||||
case WAIT_EVENT_HASH_GROW_BUCKETS_REALLOCATE:
|
||||
event_name = "HashGrowBucketsReallocate";
|
||||
break;
|
||||
case WAIT_EVENT_HASH_GROW_BUCKETS_REINSERT:
|
||||
event_name = "HashGrowBucketsReinsert";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user