Re: Adding pipe support to pg_dump and pg_restore

From: Andres Freund <andres(at)anarazel(dot)de>
To: David Hedberg <david(dot)hedberg(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Adding pipe support to pg_dump and pg_restore
Date: 2018-09-29 18:01:08
Message-ID: 20180929180108.hrje56vav3awy75d@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2018-09-29 14:51:33 +0200, David Hedberg wrote:
> I recently wanted a way to encrypt/decrypt backups while still
> utilizing the parallel dump/restore functionality. I couldn't see a
> way to do this so I experimented a bit with the directory backup
> format. If there's in fact already a way to do this, please tell me
> now :-)
>
> The idea is to add a --pipe option to pg_dump / pg_restore where you
> can specify a custom shell command that is used to write / read each
> .dat-file. Usage examples include encryption with pgp and/or custom
> compression pipelines. %p in the command is expanded to the path to
> write to / read from. The pipe command is not applied to the toc.
>
> The current version is attached. Could something like this be
> acceptable for inclusion?

Isn't that a bit unsatisfying because information about the tables and
their sizes leaks?

My suspicion is, and was, that we're probably at some point are going to
want a format that supports the features the directory format does,
without requiring to write to multiple files...

- Andres

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2018-09-29 18:03:32 Re: Adding pipe support to pg_dump and pg_restore
Previous Message David Hedberg 2018-09-29 17:50:49 Re: Adding pipe support to pg_dump and pg_restore