From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(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-07-03 03:15:28 |
Message-ID: | CAA4eK1JNhY6UhH5VQXDWvGYHd3VGyBDT+wqbyvH6BrXEZufotg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On Thu, Jul 2, 2015 at 7:44 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
wrote:
>
> Amit Kapila wrote:
> >
> > Added the above log messages in attached patch with small change
> > such that in message, file names will be displayed with quotes as most
> > of other usages of rename (failure) in that file uses quotes to display
> > filenames.
>
> Why emit two messages?
not necessary.
> Can we reduce that to a single one? Maybe the
> first one could be errdetail or something.
>
I think it is better other way (basically have second one as errdetail).
We already have one similar message in xlog.c that way.
ereport(LOG,
(errmsg("online backup mode canceled"),
errdetail("\"%s\" was renamed to \"%s\".",
BACKUP_LABEL_FILE, BACKUP_LABEL_OLD)));
Attached patch consolidates errmsg into one message.
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com
Attachment | Content-Type | Size |
---|---|---|
rename_mapfile_if_backupfile_not_present_v3.patch | application/octet-stream | 1.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2015-07-03 07:51:55 | pgsql: Lift the limitation that # of clients must be a multiple of # of |
Previous Message | Fujii Masao | 2015-07-03 02:55:08 | pgsql: Make WAL-related utilities handle .partial WAL files properly. |
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2015-07-03 03:18:31 | Re: Synch failover WAS: Support for N synchronous standby servers - take 2 |
Previous Message | Fujii Masao | 2015-07-03 02:55:48 | Re: WAL-related tools and .paritial WAL file |