pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Fujii Masao <masao.fujii@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] pgsql: Use LEFT JOINs in some system views in case referenced row doesn
Date: Sun, 11 Sep 2016 22:38:23 -0400
Message-ID: <11143.1473647903@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqS8c76KPSufK_HSDeYrbtg+zZ7D0EEkjeM6txSEuCB_jA@mail.gmail.com>
References: <E1bar6u-0003s8-2k@gemulon.postgresql.org>
	<CAHGQGwH=o-DjJcnCryeXES3wnq-YLTJoF3rxr0qxqm0=2QJxuw@mail.gmail.com>
	<31254.1473443964@sss.pgh.pa.us>
	<31841.1473526262@sss.pgh.pa.us>
	<10620.1473538910@sss.pgh.pa.us>
	<CAB7nPqQbfMjigPAoTRQV+9Kp8FNF=3oz2+_Q+AJmAR118kB=kg@mail.gmail.com>
	<8082.1473642785@sss.pgh.pa.us>
	<20160912011646.GE11453@tamriel.snowman.net>
	<CAB7nPqS8c76KPSufK_HSDeYrbtg+zZ7D0EEkjeM6txSEuCB_jA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Michael Paquier <michael.paquier@gmail.com> 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



view thread (18+ messages)  latest in thread

Message-ID: <11143.1473647903@sss.pgh.pa.us>
Permalink:  ../11143.1473647903@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11143.1473647903@sss.pgh.pa.us

 · 

reply

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, sfrost@snowman.net, masao.fujii@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Use LEFT JOINs in some system views in case referenced row doesn
  In-Reply-To: <11143.1473647903@sss.pgh.pa.us>
  References: <E1bar6u-0003s8-2k@gemulon.postgresql.org> <CAHGQGwH=o-DjJcnCryeXES3wnq-YLTJoF3rxr0qxqm0=2QJxuw@mail.gmail.com> <31254.1473443964@sss.pgh.pa.us> <31841.1473526262@sss.pgh.pa.us> <10620.1473538910@sss.pgh.pa.us> <CAB7nPqQbfMjigPAoTRQV+9Kp8FNF=3oz2+_Q+AJmAR118kB=kg@mail.gmail.com> <8082.1473642785@sss.pgh.pa.us> <20160912011646.GE11453@tamriel.snowman.net> <CAB7nPqS8c76KPSufK_HSDeYrbtg+zZ7D0EEkjeM6txSEuCB_jA@mail.gmail.com> <11143.1473647903@sss.pgh.pa.us>

* 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