Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMHCr-0001DC-7z for pgsql-general@arkaria.postgresql.org; Mon, 12 Nov 2018 18:45:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gMHCp-00007a-DI for pgsql-general@arkaria.postgresql.org; Mon, 12 Nov 2018 18:45:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMHCp-00006R-1p for pgsql-general@lists.postgresql.org; Mon, 12 Nov 2018 18:45:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMHCm-0003uN-Lr for pgsql-general@lists.postgresql.org; Mon, 12 Nov 2018 18:45:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wACIivVR028067; Mon, 12 Nov 2018 13:44:57 -0500 From: Tom Lane To: David cc: pgsql-general@lists.postgresql.org Subject: Re: Is pg_restore in 10.6 working? In-reply-to: References: Comments: In-reply-to David message dated "Mon, 12 Nov 2018 13:37:22 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28065.1542048297.1@sss.pgh.pa.us> Date: Mon, 12 Nov 2018 13:44:57 -0500 Message-ID: <28066.1542048297@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David writes: > I have some experience with different versions of Postgres, but I'm just > getting around to using pg_restore, and it's not working for me at all. > ... > But a matching pg_restore command does nothing. > pg_restore -U postgres -f predata.sql -v This command expects to read from stdin and write to predata.sql, so it's not surprising that it's just sitting there. What you want is something along the lines of pg_restore -U postgres -d dbname -v