Re: pg_basebackup is taking backup of extra files inside a tablespace directory - Mailing list pgsql-hackers

From Hari Babu
Subject Re: pg_basebackup is taking backup of extra files inside a tablespace directory
Date
Msg-id 008101cdcd42$41cd6d90$c56848b0$@kommi@huawei.com
Whole thread Raw
In response to Re: pg_basebackup is taking backup of extra files inside a tablespace directory  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers

> On Wed, Nov 28, 2012 at 12:43 PM, Michael Paquier < michael(dot)paquier(at)gmail(dot)com>wrote:
>> On Wed, Nov 28, 2012 at 3:55 PM, Hari Babu <haribabu(dot)kommi(at)huawei(dot)com>wrote:
>> pg_basebackup is taking backup of extra files other than database related
>> files in side a TABLESPACE directory.

> And why do you have files not related to your PG server inside a folder
> dedicated to a PG server?

Incase of pg_upgrade old version to new version, new tablespace will be created in same tablespace path with different tablespace version number.

So while taking backup need to skip the other data directory files.

ls opt/tbs1
        PG_9.2_201204301
        PG_9.3_201210071

Regards,

Hari babu.

 

From: Michael Paquier [mailto:michael.paquier@gmail.com]
Sent: Wednesday, November 28, 2012 12:43 PM
To: Hari Babu
Cc: PostgreSQL-development
Subject: Re: [HACKERS] pg_basebackup is taking backup of extra files inside a tablespace directory

 

 

On Wed, Nov 28, 2012 at 3:55 PM, Hari Babu <haribabu.kommi@huawei.com> wrote:

pg_basebackup is taking backup of extra files other than database related files in side a TABLESPACE directory.

And why do you have files not related to your PG server inside a folder dedicated to a PG server?

--
Michael Paquier
http://michael.otacoo.com

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pg_basebackup is taking backup of extra files inside a tablespace directory
Next
From: Pavan Deolasee
Date:
Subject: Strange behaviour with incompatible psql/server