Re: pg_basebackup, tablespace mapping and path canonicalization - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: pg_basebackup, tablespace mapping and path canonicalization
Date
Msg-id 20150429001221.GF31727@momjian.us
Whole thread Raw
In response to Re: pg_basebackup, tablespace mapping and path canonicalization  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: pg_basebackup, tablespace mapping and path canonicalization
List pgsql-hackers
On Fri, Feb  6, 2015 at 08:25:42AM -0500, Robert Haas wrote:
> On Thu, Feb 5, 2015 at 10:21 PM, Ian Barwick <ian@2ndquadrant.com> wrote:
> > I stumbled on what appears to be inconsistent handling of double slashes
> > in tablespace paths when using pg_basebackup with the -T/--tablespace-mapping
> > option:
> >
> >     ibarwick:postgresql (master)$ mkdir /tmp//foo-old
> [...]
> > The attached patch adds the missing canonicalization; I can't see any
> > reason not to do this. Thoughts?
> 
> Seems OK to me.  Anyone think differently?

Patch applied.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + Everyone has their own god. +



pgsql-hackers by date:

Previous
From: Fabrízio de Royes Mello
Date:
Subject: Re: Can pg_dump make use of CURRENT/SESSION_USER
Next
From: Jim Nasby
Date:
Subject: Re: Allow SQL/plpgsql functions to accept record