Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lv1Cx-0000ih-Cj for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Jun 2021 17:26:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lv1Cw-00024E-Ab for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Jun 2021 17:26:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lv1Cw-000246-45 for pgsql-bugs@lists.postgresql.org; Sun, 20 Jun 2021 17:26:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lv1Cu-0000nB-7C for pgsql-bugs@lists.postgresql.org; Sun, 20 Jun 2021 17:26:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15KHQ1ZN1510738; Sun, 20 Jun 2021 13:26:01 -0400 From: Tom Lane 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) In-reply-to: <17065-19b17b44a866cb35@postgresql.org> References: <17065-19b17b44a866cb35@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Sat, 19 Jun 2021 11:28:45 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1510736.1624209961.1@sss.pgh.pa.us> Date: Sun, 20 Jun 2021 13:26:01 -0400 Message-ID: <1510737.1624209961@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form 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