Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

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 4f79be75-7e30-4817-b0da-4a691ea5427f@postgrespro.ru
Whole thread Raw
In response to Re: WIP: new system catalog pg_wait_event  ("Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>)
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