From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Re: [COMMITTERS] pgsql: Map basebackup tablespaces using a tablespace_map file |
Date: | 2015-09-04 07:48:54 |
Message-ID: | CAA4eK1+KD3g3WLQUgEfqY+ApxQ=_0ygXt=SR91Tp72KEbqH1Aw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On Thu, Sep 3, 2015 at 6:07 PM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>
> On Tue, Aug 4, 2015 at 12:15 PM, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
wrote:
> > On Mon, Aug 3, 2015 at 7:44 PM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
wrote:
> >> ISTM that we can
> >> see that the online backup mode has already been canceled if
backup_label
> >> file
> >> is successfully removed whether tablespace_map file remains or not. No?
> >>
> >
> > I think what we should do is that display successful cancellation
message
> > only when both the files are renamed.
>
> Please imagine the case where backup_label was successfully renamed
> but tablespace_map was not. Even in this case, I think that we can see
> that the backup mode was canceled because the remaining tablespace_map
> file will be ignored in the subsequent recovery.
Right.
>
> So we should emit
> the successful cancellation message when backup_label is renamed
> whether tablespace_map is successfully renamed or not?
>
You mean to say, just try renaming tablespace_map and don't display any
message whether that is successful or not-successful?
I see some user inconvenience if we do this way, which is even after the
backup is cancelled, on next recovery, there will be a log message
indicating
either rename of tablespace_map successful or unsuccessful. Also, don't you
think it is better to let user know that the tablespace_map file is
successfully
renamed as we do for backup_label file. Shall we change the patch such that
if backup_label is successfully renamed and renaming of tablespace_map
gets failed, then display a log message to something like below:
LOG: online backup mode canceled
DETAIL: "backup_label" was renamed to "backup_label.old", could not rename
"tablespace_map" to "tablespace_map.old"
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Teodor Sigaev | 2015-09-04 09:52:46 | pgsql: Make unaccent handle all diacritics known to Unicode, and expand |
Previous Message | Robert Haas | 2015-09-03 17:35:55 | pgsql: Assorted code review for recent ProcArrayLock patch. |
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2015-09-04 08:33:51 | Re: [PATCH] SQL function to report log message |
Previous Message | Pavel Stehule | 2015-09-04 07:38:36 | Re: [PATCH] SQL function to report log message |