diff options
| author | Michael Paquier | 2023-09-06 01:04:43 +0000 |
|---|---|---|
| committer | Michael Paquier | 2023-09-06 01:04:43 +0000 |
| commit | 414f6c0fb79a23afa63bfd27375dbd688031dfd1 (patch) | |
| tree | e12f8d8ec34be1491bb963c534ed78f99ed691ac /src/backend/libpq | |
| parent | f39b265808bde307953dd4bd46dca1f58f0988e8 (diff) | |
Use more consistent names for wait event objects and types
The event names use the same case-insensitive characters, hence applying
lower() or upper() to the monitoring queries allows the detection of the
same events as before this change. It is possible to cross-check the
data with the system view pg_wait_events, for instance, with a query
like that showing no differences:
SELECT lower(type), lower(name), description
FROM pg_wait_events ORDER BY 1, 2;
This will help in the introduction of more simplifications in the format
of wait_event_names. Some of the enum values in the code had to be
renamed a bit to follow the same convention naming across the board.
Reviewed-by: Bertrand Drouvot
Discussion: https://postgr.es/m/ZOxVHQwEC/9X/p/z@paquier.xyz
Diffstat (limited to 'src/backend/libpq')
| -rw-r--r-- | src/backend/libpq/pqmq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/libpq/pqmq.c b/src/backend/libpq/pqmq.c index 253181f47a9..38b042804c3 100644 --- a/src/backend/libpq/pqmq.c +++ b/src/backend/libpq/pqmq.c @@ -182,7 +182,7 @@ mq_putmessage(char msgtype, const char *s, size_t len) break; (void) WaitLatch(MyLatch, WL_LATCH_SET | WL_EXIT_ON_PM_DEATH, 0, - WAIT_EVENT_MQ_PUT_MESSAGE); + WAIT_EVENT_MESSAGE_QUEUE_PUT_MESSAGE); ResetLatch(MyLatch); CHECK_FOR_INTERRUPTS(); } |
