New option for pg_basebackup, to specify a different directory for pg_xlog

From: Haribabu kommi <haribabu(dot)kommi(at)huawei(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: New option for pg_basebackup, to specify a different directory for pg_xlog
Date: 2013-11-14 12:08:29
Message-ID: 8977CB36860C5843884E0A18D8747B0372BDB4FD@szxeml558-mbs.china.huawei.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
UserSpecifiedxlogDir.patch application/octet-stream 4.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message KONDO Mitsumasa 2013-11-14 12:09:27 Optimize kernel readahead using buffer access strategy
Previous Message Etsuro Fujita 2013-11-14 11:50:45 Re: Improve code in tidbitmap.c