Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aobAc-00082B-P4 for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Apr 2016 18:30:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aobAc-0008Pd-7t for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Apr 2016 18:30:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aoGRa-0005Oe-6o for pgsql-hackers@postgresql.org; Thu, 07 Apr 2016 20:22:22 +0000 Received: from ohmu.fi ([213.157.68.249]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aoGRR-0002S3-Vp for pgsql-hackers@postgresql.org; Thu, 07 Apr 2016 20:22:20 +0000 Received: from [127.0.0.1] (localhost [IPv6:::1]) by ohmu.fi (Postfix) with ESMTP id 3756C6046D; Thu, 7 Apr 2016 23:22:09 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aiven.io; s=ohmu20151013; t=1460060529; bh=jS3cQJQ+I3Gm9YhPz9KgjxfITRKg7vKNoIUcxItj6sc=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=dukMOgPbTLUDHPLr0F4LRqSl9GT1bDDzpXWM9x3BjvMoSSDmlFFcwIplaW24cedpc t1BwbvRNJfRV7uXC0u6YLhZnuqrwjmJc/sOTA6kqY0Oo1TJ33xEpU8u/t25Qjg6x6t wo4oT+tsd2AqtfDAmMelmm+lx0lITLdekpioX9EE= Subject: Re: Show dropped users' backends in pg_stat_activity To: Tom Lane References: <56E87CD8.60007@ohmu.fi> <16068.1458143290@sss.pgh.pa.us> <20160323.123541.203539504.horiguchi.kyotaro@lab.ntt.co.jp> <3577.1458835419@sss.pgh.pa.us> Cc: Robert Haas , Kyotaro HORIGUCHI , "pgsql-hackers@postgresql.org" From: Oskari Saarenmaa Message-ID: <5706C170.8000202@aiven.io> Date: Thu, 7 Apr 2016 23:22:08 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <3577.1458835419@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org 24.03.2016, 18:03, Tom Lane kirjoitti: > Robert Haas 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