pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Imseih (AWS), Sami <simseih@amazon.com>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Bossart, Nathan <bossartn@amazon.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Add index scan progress to pg_stat_progress_vacuum
Date: Sat, 12 Mar 2022 13:20:04 -0800
Message-ID: <20220312212004.GA848429@nathanxps13> (raw)
In-Reply-To: <DD7EEE19-EFFB-481C-A6EC-26B1E0356F7A@amazon.com>
References: <20220225195253.GA663211@nathanxps13>
	<B741F5D1-2B29-4CD6-8938-E6265AB45476@amazon.com>
	<CAD21AoA4kNdG6Qi8Qr4vFpvrGKd9MqjVPLUVZMEoBWHdCqfu9Q@mail.gmail.com>
	<F5F2CD8C-49D4-4B9A-983F-E3FF0E8CF048@amazon.com>
	<CAD21AoBW6SMJ96CNoMeu+f_BR4jmatPcfVA016FdD2hkLDsaTA@mail.gmail.com>
	<D4BBFE30-AB76-49E1-9A47-5A2851CCCB9F@amazon.com>
	<CAD21AoDf4pf89i7fgzrHDdJueNHLm4x92xHjcDeYaV+pdhem-Q@mail.gmail.com>
	<99A5CBE8-EC10-42AA-ABB4-4C812EEFD294@amazon.com>
	<20220310005237.GA307769@nathanxps13>
	<DD7EEE19-EFFB-481C-A6EC-26B1E0356F7A@amazon.com>

On Sat, Mar 12, 2022 at 07:00:06AM +0000, Imseih (AWS), Sami wrote:
>> nitpick: Can we remove the extra spaces in the parentheses?
> 
> fixed
> 
>> What does it mean if there isn't an entry in the map?  Is this actually
>> expected, or should we ERROR instead?
> 
> I cleaned up the code here and added comments. 
> 
>> I think the number of entries should be shared between
>> VacuumWorkerProgressShmemInit() and VacuumWorkerProgressShmemSize().
>> Otherwise, we might update one and not the other.
> 
> Fixed
> 
>> I think we should elaborate a bit more in this comment.  It's difficult to
>> follow what this is doing without referencing the comment above
>> set_vacuum_worker_progress().
> 
> More comments added
> 
> I also simplified the 0002 patch as well.

These patches look pretty good to me.  Barring additional feedback, I
intend to mark this as ready-for-committer early next week.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com





view thread (139+ messages)  latest in thread

Message-ID: <20220312212004.GA848429@nathanxps13>
Permalink:  ../20220312212004.GA848429@nathanxps13/
Also on:    postgresql.org/message-id/20220312212004.GA848429@nathanxps13

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, simseih@amazon.com, sawada.mshk@gmail.com, pg@bowt.ie, bossartn@amazon.com, pryzby@telsasoft.com
  Subject: Re: Add index scan progress to pg_stat_progress_vacuum
  In-Reply-To: <20220312212004.GA848429@nathanxps13>

* 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