pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: ktr@goldin-rudahl.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17065: pg_restore never returns even on simple situations (maybe I just don't understand something)
Date: Sun, 20 Jun 2021 13:26:01 -0400
Message-ID: <1510737.1624209961@sss.pgh.pa.us> (raw)
In-Reply-To: <17065-19b17b44a866cb35@postgresql.org>
References: <17065-19b17b44a866cb35@postgresql.org>

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





view thread (2+ messages)

Message-ID: <1510737.1624209961@sss.pgh.pa.us>
Permalink:  ../1510737.1624209961@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1510737.1624209961@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ktr@goldin-rudahl.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17065: pg_restore never returns even on simple situations (maybe I just don't understand something)
  In-Reply-To: <1510737.1624209961@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox