Re: WIP: new system catalog pg_wait_event

Поиск
Список
Период
Сортировка
От Pavel Luzanov
Тема Re: WIP: new system catalog pg_wait_event
Дата
Msg-id 4f79be75-7e30-4817-b0da-4a691ea5427f@postgrespro.ru
обсуждение исходный текст
Ответ на Re: WIP: new system catalog pg_wait_event  ("Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>)
Ответы Re: WIP: new system catalog pg_wait_event  (Michael Paquier <michael@paquier.xyz>)
Список 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
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Junwang Zhao
Дата:
Сообщение: Re: Add trailing commas to enum definitions
Следующее
От: Alexander Lakhin
Дата:
Сообщение: Re: Removing unneeded self joins