pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Bossart, Nathan <bossartn@amazon.com>
Cc: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: k.jamison@fujitsu.com, Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-hackers@postgresql.org, Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Subject: Re: please update ps display for recovery checkpoint
Date: Thu, 10 Jun 2021 10:35:16 +0900
Message-ID: <YMFsVC8vMa+lGFrG@paquier.xyz> (raw)
In-Reply-To: <20210607021348.GA14099@telsasoft.com>
References: <X9Brc31Jj5cemRUw@paquier.xyz>
	<B8C46DD1-557F-4D20-97DD-DBC16772457F@amazon.com>
	<X9Ltbgcqy18Xvizq@paquier.xyz>
	<20201211040210.GZ24052@telsasoft.com>
	<X9Ly3zWGtaIfaRYT@paquier.xyz>
	<59A309AA-87C4-457E-A9D4-922BC5A418BA@amazon.com>
	<X9QH9ztwiVt1Lk/N@paquier.xyz>
	<B08B7934-A7DA-4A4E-BBFC-3505667F2B7E@amazon.com>
	<X9bVjWjCb5yxgDwN@paquier.xyz>
	<20210607021348.GA14099@telsasoft.com>

On Sun, Jun 06, 2021 at 09:13:48PM -0500, Justin Pryzby wrote:
> Putting this into fd.c seems to assume that we can clobber "ps", which is fine
> when called by StartupXLOG(), but it's a public interface, so I'm not sure if
> it's okay to assume that's the only caller.  Maybe it should check if
> MyAuxProcType == B_STARTUP.

I would be tempted to just add that into StartupXLOG() rather than
implying that callers of SyncDataDirectory() are fine to get their ps
output enforced all the time.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (30+ messages)

Message-ID: <YMFsVC8vMa+lGFrG@paquier.xyz>
Permalink:  ../YMFsVC8vMa+lGFrG@paquier.xyz/
Also on:    postgresql.org/message-id/YMFsVC8vMa+lGFrG@paquier.xyz

 · 

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-hackers@postgresql.org
  Cc: michael@paquier.xyz, pryzby@telsasoft.com, bossartn@amazon.com, masao.fujii@oss.nttdata.com, thomas.munro@gmail.com, nitinjadhavpostgres@gmail.com
  Subject: Re: please update ps display for recovery checkpoint
  In-Reply-To: <YMFsVC8vMa+lGFrG@paquier.xyz>
  References: <X9Brc31Jj5cemRUw@paquier.xyz> <B8C46DD1-557F-4D20-97DD-DBC16772457F@amazon.com> <X9Ltbgcqy18Xvizq@paquier.xyz> <20201211040210.GZ24052@telsasoft.com> <X9Ly3zWGtaIfaRYT@paquier.xyz> <59A309AA-87C4-457E-A9D4-922BC5A418BA@amazon.com> <X9QH9ztwiVt1Lk/N@paquier.xyz> <B08B7934-A7DA-4A4E-BBFC-3505667F2B7E@amazon.com> <X9bVjWjCb5yxgDwN@paquier.xyz> <20210607021348.GA14099@telsasoft.com> <YMFsVC8vMa+lGFrG@paquier.xyz>

* 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