pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: naus.office@aon.at
To: pgsql-admin@postgresql.org
Subject: Re: pg_restore vs psql
Date: Sat, 26 Apr 2003 16:24:48 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGAECGHEAA.nickf@ontko.com> (raw)
In-Reply-To: <200304261248.h3QCmJn02369@ns.naus.home>
Erwin-
If you created your dump file using the -Fc or -Ft format switches, you'll
need to use pg_restore to restore from the dump file. Without the format
switches, pg_dump creates a plain text file of psql commands.
Generally, I'd say that if you intend to restore the entire contents of your
dump file, then using the plain text format (& compressing with gzip if
needed) is the way to go.
If you need the ability to selectively restore some part of the dump file,
(like one table) then you should use one of the non-text formats for pg_dump
and thus need to restore using pg_restore.
I've learned that doing a complete restore of a non-text dump file using
pg_restore is a real pain, so our backup strategy includes creating both a
tar-format and plain text dump file of the entire database so we are
positioned to do either a partial or full restore with ease.
Regards,
-Nick
---------------------------------------------------------------------
Nick Fankhauser
nickf@doxpop.com Phone 1.765.965.7363 Fax 1.765.962.9788
doxpop - Court records at your fingertips - http://www.doxpop.com/
> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Erwin Ambrosch
> Sent: Saturday, April 26, 2003 7:48 AM
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] pg_restore vs psql
>
>
> Hi,
>
> can one tell me whether there are main differences in using
> pg_restore of "psql -f mydb.dump mydb" on a file created with pg_dump.
>
> Thaks Erwin
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
view thread (4+ messages) latest in thread
Message-ID: <NEBBLAAHGLEEPCGOBHDGAECGHEAA.nickf@ontko.com> Permalink: ../NEBBLAAHGLEEPCGOBHDGAECGHEAA.nickf@ontko.com/ Also on: postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGAECGHEAA.nickf@ontko.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-admin@postgresql.org Cc: nickf@ontko.com, naus.office@aon.at Subject: Re: pg_restore vs psql In-Reply-To: <NEBBLAAHGLEEPCGOBHDGAECGHEAA.nickf@ontko.com> References: <200304261248.h3QCmJn02369@ns.naus.home> <NEBBLAAHGLEEPCGOBHDGAECGHEAA.nickf@ontko.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox