Re: Show dropped users' backends in pg_stat_activity - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Show dropped users' backends in pg_stat_activity
Date
Msg-id 16318.1471641386@sss.pgh.pa.us
Whole thread Raw
In response to Re: Show dropped users' backends in pg_stat_activity  (Stephen Frost <sfrost@snowman.net>)
List 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 by date:

Previous
From: Piotr Stefaniak
Date:
Subject: Re: Re: PROPOSAL: make PostgreSQL sanitizers-friendly (and prevent information disclosure)
Next
From: Tom Lane
Date:
Subject: Re: pgbench - allow empty queries