Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjFrf-0000MS-0u for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Sep 2016 01:16:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bjFre-00049X-F8 for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Sep 2016 01:16:50 +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 1bjFrc-00048Z-UH for pgsql-hackers@postgresql.org; Mon, 12 Sep 2016 01:16:49 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjFra-0004fJ-NE for pgsql-hackers@postgresql.org; Mon, 12 Sep 2016 01:16:47 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6D30C5F79C; Sun, 11 Sep 2016 21:16:46 -0400 (EDT) Date: Sun, 11 Sep 2016 21:16:46 -0400 From: Stephen Frost To: Tom Lane Cc: Michael Paquier , Fujii Masao , PostgreSQL-development Subject: Re: Re: [COMMITTERS] pgsql: Use LEFT JOINs in some system views in case referenced row doesn Message-ID: <20160912011646.GE11453@tamriel.snowman.net> References: <31254.1473443964@sss.pgh.pa.us> <31841.1473526262@sss.pgh.pa.us> <10620.1473538910@sss.pgh.pa.us> <8082.1473642785@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="y2zxS2PfCDLh6JVG" Content-Disposition: inline In-Reply-To: <8082.1473642785@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 21:16:37 up 65 days, 2:40, 13 users, load average: 0.01, 0.04, 0.05 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --y2zxS2PfCDLh6JVG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > 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 process= es > >> 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. >=20 > > 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). >=20 > 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. >=20 > 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. +1 Thanks! Stephen --y2zxS2PfCDLh6JVG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJX1gH+AAoJEO1sijiDR2RVggEP/jap+nHp7BM7M6Mw4/TV4AAC 5V78AwzMKOYNXKegmYJx2DItqbDs5WAmBc0E5wi/LvqQTnhS1x5QKVFFJqn0ZUoh X1WYrgs/x//dGCOW9XVdMTeoHLqqXV69Nxnf9KD+Xzt2qaMmkv6dHVRKnzqB58be 4CVphd0WFMKAmbZhwFhuNOjKJkHnjvD96jLWupl3rFMgBjiJ+MzMOE4F5xzinEr1 a/Ual6IbFLd8wmGdB/o2w8atfkXrIzoGijfVlMvNQapZt0m3xjJs2pm0/LBxaxyh 39VN80Fei+oIHyq2HTkyZpaKppfNh4J0BSWbiQuIIJrBJPuvwu+mcm9Xg4Ve+q5p Dm6F4QjMzdTd7BX8FGqvioYdYiwA8jYKJReKFQ2+9BY/6SNSbtgXsxnwNHSL1Gbk ECCp2bf5Jh7ukhAnILda1jbzK5WVOd4fQnosDTs/AA/WwlsJ+P1mdws5dfDU4toT +fKXqIcydFV2j2tNT4YefD2dXKxIChDv3rIKfl4SkxooReoveID8e6ONyohd2ePe TuxS6uPV5YYEnXDSeZ0nW4/Rh+I8NzddafEWxfnVZ/52ds8vCsCxnHlrh2x6I5bK /vDyJVoTI/7qKwIzEwZolg6edaSVaWHsBoS5WeW8z6RuqTS/+66YuIOxDM5O/DTX fYeFpibiHXpHOCYmR3la =7qgk -----END PGP SIGNATURE----- --y2zxS2PfCDLh6JVG--