Re: How to restore a dumbed file in postgreSQL

From: "Raymond O'Donnell" <rod(at)iol(dot)ie>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to restore a dumbed file in postgreSQL
Date: 2006-11-24 21:36:40
Message-ID: 456765E8.11685.EE1E30@rod.iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 23 Nov 2006 at 20:13, Yesh wrote:

> I am a newbie to postgreSQL. I need to know the command for
> restoring a database that has been dumped. I am using postgreSQL8.1

If you dumped using the text format, simply use the resulting
dumpfile as input to psql, something like this -

psql -f <dumpfile>

- along with whatever other options are needed - see the online docs
for psql. If you used one of the binary options, you'll need to use
pg_restore - again, see the docs.

--Ray.

----------------------------------------------------------------------

Raymond O'Donnell
Director of Music, Galway Cathedral, Galway, Ireland
rod(at)iol(dot)ie
----------------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-11-24 21:42:56 Re: Connecting via ssh tunnel
Previous Message Miko O'Sullivan 2006-11-24 21:35:48 Re: Dollaw sign quoting disabled