Skip site navigation (1) Skip section navigation (2)

Re: BUG #4924: pg_restore hangs, does nothing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jim Michaels" <jmichae3(at)yahoo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4924: pg_restore hangs, does nothing
Date: 2009-07-15 23:24:48
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
"Jim Michaels" <jmichae3(at)yahoo(dot)com> writes:
> 2. pg_restore doesn't seem to do anything but hang when I try to restore.
> I did a pg_dumpall from 8.3.7:
> pg_dumpall --file=c:\pg-jmichae3-7-13-2009.sql --role=postgres
> --host=localhost --port=5432

> then I did a pg_restore to 8.4:
> pg_restore --file=c:\pg-jmichae3-7-13-2009.sql --role=postgres --verbose
> --host=localhost --port=5432

--file is the output argument for pg_restore, not the input argument.
It's trying to read the archive from stdin, so it's waiting for you
to type something.

In any case, pg_restore is the wrong tool for restoring pg_dumpall
output.  You should just feed the script to psql.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Robert HaasDate: 2009-07-16 02:34:48
Subject: Re: Installation problems
Previous:From: Don FoxDate: 2009-07-15 23:18:00
Subject: Installation problems

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group