Re: tablespace_map code cleanup
Kyotaro Horiguchi <horikyota.ntt@gmail.com>
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: robertmhaas@gmail.com
Cc: amit.kapila16@gmail.com, pgsql-hackers@lists.postgresql.org
Date: 2020-05-14T02:43:19Z
Lists: pgsql-hackers
At Wed, 13 May 2020 15:10:30 -0400, Robert Haas <robertmhaas@gmail.com> wrote in > On Tue, May 12, 2020 at 10:26 PM Amit Kapila <amit.kapila16@gmail.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
Commits
-
Minor code cleanup for perform_base_backup().
- 453e0e3f0ef3 14.0 landed
-
Don't export basebackup.c's sendTablespace().
- 1fa092913d26 14.0 landed
-
Map basebackup tablespaces using a tablespace_map file
- 72d422a5227e 9.5.0 cited