Re: tablespace_map code cleanup

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: robertmhaas(at)gmail(dot)com
Cc: amit(dot)kapila16(at)gmail(dot)com, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: tablespace_map code cleanup
Date: 2020-05-14 02:43:19
Message-ID: 20200514.114319.1756916152856647629.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At Wed, 13 May 2020 15:10:30 -0400, Robert Haas <robertmhaas(at)gmail(dot)com> wrote in
> On Tue, May 12, 2020 at 10:26 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
> > I was trying to say that tablespace listing will happen under
> > PROGRESS_BASEBACKUP_PHASE_WAIT_CHECKPOINT phase which could be a
> > problem if it is a costly operation but as you said it is pretty cheap
> > so I think we don't need to bother about that.
> >
> > Apart from the above point which I think we don't need to bother, both
> > your patches look good to me.
>
> OK, good. Let's see if anyone else feels differently about this issue
> or wants to raise anything else. If not, I'll plan to commit these
> patches after we branch. Thanks for the review.

Table space listing needs only one or few 512k pages, which should be
on OS file cache, which cannot take long time unless the system is
facing a severe trouble. (I believe that is the same on Windows.)

I'm fine that WAIT_CHECKPOINT contains the time to enumerate
tablespace directories.

0001 looks good to me. The progress information gets

About 0002,

+ bool sendtblspclinks = true;

The boolean seems to me useless since it is always the inverse of
opt->sendtblspcmapfile when it is used.

Everything looks fine to me except the above.

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andy Fan 2020-05-14 02:46:27 Re: [PATCH] Keeps tracking the uniqueness with UniqueKey
Previous Message Bruce Momjian 2020-05-14 02:40:52 Re: PG 13 release notes, first draft