Re: pg_restore problem!!! - Mailing list pgsql-admin

From Nick Fankhauser
Subject Re: pg_restore problem!!!
Date
Msg-id NEBBLAAHGLEEPCGOBHDGAEPEHMAA.nickf@ontko.com
Whole thread Raw
In response to Re: pg_restore problem!!!  ("David Olbersen" <DOlbersen@stbernard.com>)
List pgsql-admin
> To nit-pick, this is a "useless use of cat".
>
> In UNIX-land, simple input redirection will work much better:
>
>   psql [dbname and various options] < [filename]

Good point... to elaborate further, the reason I was in a piping mindset is
that with a large database, it also makes sense to compress on the fly to
avoid filesystem size limits, so I usually use this pair of commands for
backup/restore:

pg_dump dbname | gzip > dbdumpfile.gz

gunzip -c dbdumpfile | psql dbname

-Nick


pgsql-admin by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: How can I set a default schema for a session
Next
From: Ian Barwick
Date:
Subject: Re: How can I set a default schema for a session