Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjFpT-0000Eq-Ae for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Sep 2016 01:14:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bjFpS-0003z8-Lg for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Sep 2016 01:14:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bjFo6-0002PN-BG for pgsql-hackers@postgresql.org; Mon, 12 Sep 2016 01:13:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bjFo3-0007CI-Pb for pgsql-hackers@postgresql.org; Mon, 12 Sep 2016 01:13:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u8C1D5Rd008083; Sun, 11 Sep 2016 21:13:05 -0400 From: Tom Lane To: Michael Paquier cc: Fujii Masao , PostgreSQL-development Subject: Re: Re: [COMMITTERS] pgsql: Use LEFT JOINs in some system views in case referenced row doesn In-reply-to: References: <31254.1473443964@sss.pgh.pa.us> <31841.1473526262@sss.pgh.pa.us> <10620.1473538910@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Mon, 12 Sep 2016 10:00:50 +0900" Date: Sun, 11 Sep 2016 21:13:05 -0400 Message-ID: <8082.1473642785@sss.pgh.pa.us> X-Pg-Spam-Score: -4.1 (----) 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 Michael Paquier writes: > On Sun, Sep 11, 2016 at 5:21 AM, Tom Lane wrote: >> The fact that the pg_stat_replication view does show walsender processes >> seems like possibly a reasonable argument for not showing them in >> pg_stat_activity. But we'd have to do some rejiggering of the view >> definition to make that happen. > We may actually had better show WAL sender processes in > pg_stat_activity. An argument in favor of that is the tracking of > WaitEventSet events (or latches if you want). Also, walsenders count against MaxBackends don't they? So not showing them could contribute to confusion about why an installation is hitting the connection limit. If we do keep them in the view, I would definitely vote for having them set their "query" fields to something that shows they're walsenders. It's awfully late to be doing anything complicated there for 9.6, but we could just set the query to "walsender" and plan to improve on that in future releases. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers