From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
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 21:13:05 -0400
Message-ID: <8082.1473642785@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqQbfMjigPAoTRQV+9Kp8FNF=3oz2+_Q+AJmAR118kB=kg@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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Michael Paquier <michael.paquier@gmail.com> writes:
> On Sun, Sep 11, 2016 at 5:21 AM, Tom Lane <tgl@sss.pgh.pa.us> 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
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, 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: <8082.1473642785@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>
* 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