Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjH8k-0003x5-C8 for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Sep 2016 02:38:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bjH8j-0002JZ-Cz for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Sep 2016 02:38:33 +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 1bjH8h-0002JP-La for pgsql-hackers@postgresql.org; Mon, 12 Sep 2016 02:38:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bjH8b-000636-1r for pgsql-hackers@postgresql.org; Mon, 12 Sep 2016 02:38:30 +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 u8C2cNIj011144; Sun, 11 Sep 2016 22:38:23 -0400 From: Tom Lane To: Michael Paquier cc: Stephen Frost , 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> <8082.1473642785@sss.pgh.pa.us> <20160912011646.GE11453@tamriel.snowman.net> Comments: In-reply-to Michael Paquier message dated "Mon, 12 Sep 2016 11:27:20 +0900" Date: Sun, 11 Sep 2016 22:38:23 -0400 Message-ID: <11143.1473647903@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: > Indeed, and the query field does not have much more meaning for a WAL > sender. So I'd propose the attached for 9.6 and HEAD. I have thought > about reporting that to pgstat in StartReplication(), but as there is > some error handling there I'd think that WalSndLoop() is a better > place to call pgstat_report_activity, as per the attached. As long as it's a fixed string there's no reason to set it repeatedly, so this placement looks fine for now. We can reconsider when/if we make it variable and decide what is going to drive it. On reflection, maybe s/walsender/WAL sender/? It doesn't look like we really use the word "walsender" in user-facing docs. 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