Re: WIP: new system catalog pg_wait_event - Mailing list pgsql-hackers

From Pavel Luzanov
Subject Re: WIP: new system catalog pg_wait_event
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: WIP: new system catalog pg_wait_event  ("Drouvot, Bertrand" <[email protected]>)
Responses Re: WIP: new system catalog pg_wait_event
List pgsql-hackers
Please, consider this small fix for the query example in the docs[1]:
SELECT a.pid, a.wait_event, w.description  FROM pg_stat_activity a JOIN       pg_wait_events w ON (a.wait_event_type = w.type AND                            a.wait_event = w.name)  WHERE wait_event is NOT NULL and a.state = 'active';

I propose to add a table alias for the wait_event column in the WHERE clause for consistency.

1. https://www.postgresql.org/docs/devel/monitoring-stats.html#MONITORING-PG-STAT-ACTIVITY-VIEW
-- 
Pavel Luzanov
Postgres Professional: https://postgrespro.com
Attachment

pgsql-hackers by date:

Previous
From: Junwang Zhao
Date:
Subject: Re: Add trailing commas to enum definitions
Next
From: Alexander Lakhin
Date:
Subject: Re: Removing unneeded self joins