Re: Would you add a --dry-run to pg_restore?

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Would you add a --dry-run to pg_restore?
Date: 2017-08-02 18:39:42
Message-ID: 20170802183942.nryqcghj2f4trccu@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Aug 02, 2017 at 12:10:37PM -0500, Edmundo Robles wrote:

> I imagine pg_restore can execute the instructions on dump but don't
> write on disk. just like David said: "tell me what is going to happen
> but don't actually do it"

In fact, this already exists:

pg_restore --file=commands.sql your-backup

Then read commands.sql.

It will tell you what is going to happen but not actually do it.

Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John McKown 2017-08-02 19:35:20 Re: bidirectional mapping?
Previous Message Pankaj Arora 2017-08-02 18:12:55 PostgreSQL 9.3 Uninstall error - Windows 2012