From: Oskari Saarenmaa <os@aiven.io>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Show dropped users' backends in pg_stat_activity
Date: Thu, 7 Apr 2016 23:22:08 +0300
Message-ID: <5706C170.8000202@aiven.io> (raw)
In-Reply-To: <3577.1458835419@sss.pgh.pa.us>
References: <56E87CD8.60007@ohmu.fi>
<CA+TgmoabAtxUpdG7XX3fXoVZef=Miy6Q2=_Ng-nGCfvzBgdbkw@mail.gmail.com>
<16068.1458143290@sss.pgh.pa.us>
<20160323.123541.203539504.horiguchi.kyotaro@lab.ntt.co.jp>
<CA+TgmoYeN+MDgGPXYJPYoBqttsTWkPw7TEAMtTz5nmiawmD6zA@mail.gmail.com>
<3577.1458835419@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
24.03.2016, 18:03, Tom Lane kirjoitti:
> Robert Haas <robertmhaas@gmail.com> writes:
>> I am not really in favor of half-fixing this. If we can't
>> conveniently wait until a dropped role is completely out of the
>> system, then I don't see a lot of point in trying to do it in the
>> limited cases where we can. If LEFT JOIN is the way to go, then,
>> blech, but, so be it.
>
> I concur. Let's put the left join(s) into those views and call it
> good.
>
> BTW, I think we would need the left joins even if we had interlocking
> in DROP, just to protect ourselves against race conditions. Remember
> that what pg_stat_activity shows is a snapshot, which might be more or
> less out of date compared to the catalog contents.
Added my patch to the 2016-09 commitfest
(https://commitfest.postgresql.org/10/601/) as a bug fix as I thought
not showing all backends in pg_stat_activity is a bug. Any chance to
get it in 9.6?
--
Oskari Saarenmaa
Aiven: managed cloud databases
https://aiven.io
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: os@aiven.io, tgl@sss.pgh.pa.us, robertmhaas@gmail.com, horiguchi.kyotaro@lab.ntt.co.jp
Subject: Re: Show dropped users' backends in pg_stat_activity
In-Reply-To: <5706C170.8000202@aiven.io>
References: <56E87CD8.60007@ohmu.fi> <CA+TgmoabAtxUpdG7XX3fXoVZef=Miy6Q2=_Ng-nGCfvzBgdbkw@mail.gmail.com> <16068.1458143290@sss.pgh.pa.us> <20160323.123541.203539504.horiguchi.kyotaro@lab.ntt.co.jp> <CA+TgmoYeN+MDgGPXYJPYoBqttsTWkPw7TEAMtTz5nmiawmD6zA@mail.gmail.com> <3577.1458835419@sss.pgh.pa.us> <5706C170.8000202@aiven.io>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox