pg_basebackup compressed tar to stdout

Started by Peter Eisentrautalmost 15 years ago3 messageshackers
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

pg_basebackup currently doesn't allow compressed tar to stdout. That
should be added to make the interface consistent, and specifically to
allow common idoms like

pg_basebackup -Ft -z -D - | ssh tar -x -z -f -

Small patch attached.

Attachments:

pg_basebackup-tar-gzip-stdout.patchtext/x-patch; charset=UTF-8; name=pg_basebackup-tar-gzip-stdout.patchDownload+21-12
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#1)
Re: pg_basebackup compressed tar to stdout

Peter Eisentraut <peter_e@gmx.net> writes:

pg_basebackup currently doesn't allow compressed tar to stdout. That
should be added to make the interface consistent, and specifically to
allow common idoms like

pg_basebackup -Ft -z -D - | ssh tar -x -z -f -

Small patch attached.

I have not bothered to read this in context, but the visible part of the
patch makes it look like you broke the not-HAVE_LIBZ case ... other than
that gripe, no objection.

regards, tom lane

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Tom Lane (#2)
Re: pg_basebackup compressed tar to stdout

On tor, 2011-05-26 at 17:06 -0400, Tom Lane wrote:

Peter Eisentraut <peter_e@gmx.net> writes:

pg_basebackup currently doesn't allow compressed tar to stdout. That
should be added to make the interface consistent, and specifically to
allow common idoms like

pg_basebackup -Ft -z -D - | ssh tar -x -z -f -

Small patch attached.

I have not bothered to read this in context, but the visible part of the
patch makes it look like you broke the not-HAVE_LIBZ case ... other than
that gripe, no objection.

Ah yes, that needs some fine-tuning.