Re: [HACKERS] pg_basebackup, tablespace mapping and path canonicalization

2015-04-28 Thread Bruce Momjian
On Fri, Feb  6, 2015 at 08:25:42AM -0500, Robert Haas wrote:
 On Thu, Feb 5, 2015 at 10:21 PM, Ian Barwick i...@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  br...@momjian.ushttp://momjian.us
  EnterpriseDB http://enterprisedb.com

  + Everyone has their own god. +


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


Re: [HACKERS] pg_basebackup, tablespace mapping and path canonicalization

2015-04-28 Thread Ian Barwick


On 29/04/15 09:12, Bruce Momjian wrote:
 On Fri, Feb  6, 2015 at 08:25:42AM -0500, Robert Haas wrote:
 On Thu, Feb 5, 2015 at 10:21 PM, Ian Barwick i...@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.

Thanks!


Regards

Ian Barwick

-- 
 Ian Barwick   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, 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


Re: [HACKERS] pg_basebackup, tablespace mapping and path canonicalization

2015-02-06 Thread Robert Haas
On Thu, Feb 5, 2015 at 10:21 PM, Ian Barwick i...@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?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers