Re: Show dropped users' backends in pg_stat_activity

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Show dropped users' backends in pg_stat_activity
Дата
Msg-id 16318.1471641386@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Show dropped users' backends in pg_stat_activity  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> * Tom Lane (tgl@sss.pgh.pa.us) wrote:
>> I concur.  Let's put the left join(s) into those views and call it
>> good.

> I'd suggest we also add some notes to the documentation that the correct
> approach to dropping users is to disallow access first, then kill any
> existing backends, and then drop the user.  That, plus the left joins,
> seems like it's good enough.

I've pushed Oskari's original patch; a look around in system_views.sql
shows that it's justified on the basis of consistency with other views
even aside from the functional problem he ran into.

The documentation question seems like material for a separate patch.
        regards, tom lane



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

Предыдущее
От: Piotr Stefaniak
Дата:
Сообщение: Re: Re: PROPOSAL: make PostgreSQL sanitizers-friendly (and prevent information disclosure)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgbench - allow empty queries