New option for pg_basebackup, to specify a different directory for pg_xlog - Mailing list pgsql-hackers

From Haribabu kommi
Subject New option for pg_basebackup, to specify a different directory for pg_xlog
Date
Msg-id 8977CB36860C5843884E0A18D8747B0372BDB4FD@szxeml558-mbs.china.huawei.com
Whole thread Raw
Responses Re: New option for pg_basebackup, to specify a different directory for pg_xlog
List pgsql-hackers

Please find attached the patch, for adding a new option for pg_basebackup, to specify a different directory for pg_xlog.

 

 

Design

 

A new option: "xlogdir" is added to the list of options for pg_basebackup. The new option is not having an equivalent short option letter.

This option will allow the user to specify a different directory for pg_xlog.

 

The format for specifying a different directory will be: --xlogdir=/path/to/xlog/directory

 

eg:

pg_basebackup --xlogdir=/home/pg/xlog -D ../dataBaseBackUp

 

 

When user specifies a xlog directory, it creates a symbolic link from the default directory to the user specified directory.

User can give only absolute path for the xlog directory. This option will work only if the format for the backup is 'plain'.

 

Please provide your feedback / suggestions

 

Regards,

Hari babu.

 

Attachment

pgsql-hackers by date:

Previous
From: KONDO Mitsumasa
Date:
Subject: Optimize kernel readahead using buffer access strategy
Next
From: KONDO Mitsumasa
Date:
Subject: Re: Add min and max execute statement time in pg_stat_statement