Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAfNm-0000Yk-RK for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jul 2015 14:22:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZAfNk-0005cl-9P for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jul 2015 14:22:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZAfG4-0008FE-D9 for pgsql-hackers@postgresql.org; Thu, 02 Jul 2015 14:14:32 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZAfFx-0001Hv-CE for pgsql-hackers@postgresql.org; Thu, 02 Jul 2015 14:14:30 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.11.231.15]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 53338400F65; Thu, 2 Jul 2015 07:14:17 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id ECAD093D; Thu, 2 Jul 2015 11:14:09 -0300 (CLT) Date: Thu, 2 Jul 2015 11:14:09 -0300 From: Alvaro Herrera To: Amit Kapila Cc: Robert Haas , Fujii Masao , Andrew Dunstan , PostgreSQL-development Subject: Re: Re: [COMMITTERS] pgsql: Map basebackup tablespaces using a tablespace_map file Message-ID: <20150702141409.GL3289@postgresql.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Amit Kapila wrote: > On Sat, Jun 27, 2015 at 12:54 AM, Robert Haas wrote: > > > > On Mon, Jun 15, 2015 at 2:52 PM, Amit Kapila > > wrote: > > > Attached patch provides a fix as per above discussion. > > > > I think we should emit some LOG messages here. When we detect the > > file is there: > > > > LOG: ignoring tablespace_map file because no backup_label file exists > > > > If the rename fails: > > > > LOG: could not rename file "%s" to "%s": %m > > > > If it works: > > > > LOG: renamed file "%s" to "%s" > > 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? Can we reduce that to a single one? Maybe the first one could be errdetail or something. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers