Thread: BUG #2521: pg_restore is hanging

BUG #2521: pg_restore is hanging

From
"Simon, Attila"
Date:
The following bug has been logged online:

Bug reference:      2521
Logged by:          Simon, Attila
Email address:      iroda@continentalinvest.hu
PostgreSQL version: 8.1.4
Operating system:   MS Windows XP (the worst)
Description:        pg_restore is hanging
Details:

We have dumped a database with pg_dump and tried to restore it. Then the
pg_restore program started to hanging, does not give any info even the
verbose flag has been turned on. But the dmp file can be executed as an SQL
script. Can you give me any info about?
Attila

Re: BUG #2521: pg_restore is hanging

From
Michael Fuhr
Date:
On Sun, Jul 09, 2006 at 08:15:27AM +0000, Simon, Attila wrote:
> We have dumped a database with pg_dump and tried to restore it. Then the
> pg_restore program started to hanging, does not give any info even the
> verbose flag has been turned on. But the dmp file can be executed as an SQL
> script. Can you give me any info about?

What were the exact pg_dump and pg_restore commands you ran?  When
you say that pg_restore started hanging, do you mean that it displayed
some output and then hung, or that it never displayed anything?  Is
it possible that you ran pg_restore without any arguments and that
it's waiting to read from standard input (the terminal window)?  If
the dump file contains SQL statements then why are you using
pg_restore instead of psql?

--
Michael Fuhr