PG Bug reporting form <noreply@postgresql.org> writes:
> I tried the following commands, as user postgres
> -bash-4.2$ pg_restore -d copy
> ^C
> -bash-4.2$ pg_restore -d copy -v
> ^C
> -bash-4.2$ pg_restore -f animals-c -l
> ^C
> -bash-4.2$ pg_restore -f animals-p -l
> In each case, I ctrl-C'd after about 10 minutes of no activity.
In all these cases, pg_restore is expecting archive input to be
supplied on stdin. You've provided switches that indicate where
its output ought to go, but there's no input. Try something like
pg_restore -l animals-c
pg_restore -l <animals-c
pg_restore -d copy animals-c
pg_restore -f - animals-c
regards, tom lane