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 1gMH8V-00014w-Dw for pgsql-general@arkaria.postgresql.org; Mon, 12 Nov 2018 18:40:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gMH8T-00008F-Si for pgsql-general@arkaria.postgresql.org; Mon, 12 Nov 2018 18:40:33 +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 1gMH8T-000071-Go for pgsql-general@lists.postgresql.org; Mon, 12 Nov 2018 18:40:33 +0000 Received: from lists.commandprompt.com ([2604:da00:2:2:5054:ff:fe07:7618]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMH8Q-0003me-0e for pgsql-general@lists.postgresql.org; Mon, 12 Nov 2018 18:40:31 +0000 Received: from [192.168.50.9] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id BDE507D1; Mon, 12 Nov 2018 10:40:27 -0800 (PST) Received: from c-73-97-49-9.hsd1.wa.comcast.net ([73.97.49.9] helo=[192.168.50.9]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.5.1); 12 Nov 2018 10:40:27 -0800 Subject: Re: Is pg_restore in 10.6 working? To: David , pgsql-general@lists.postgresql.org References: From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: <654cbe5a-f2f5-fd5d-b64b-9fdcc6619741@commandprompt.com> Date: Mon, 12 Nov 2018 10:40:27 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Assp-Version: 2.5.1(16177) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-48027-02328 X-Assp-Session: D4FA8A0 (mail 1) X-Assp-Original-Subject: Re: Is pg_restore in 10.6 working? X-Assp-Client-SSL: yes List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/12/18 10:37 AM, David wrote: > > I can connect with psql either of these two ways: > psql -U postgres > or > psql -h ip-172-31-62-127.ec2.internal -p 5432 -U postgres -W postgres > (Yes, it's an AWS server) > > This pg_dump command works: > pg_dump -U postgres -f predata.sql -F p -v  -d prod_data > > But a matching pg_restore command does nothing. > pg_restore -U postgres -f predata.sql -v pg_restore -U postgres -v predata.sql -f is used to output data from a backup file into predata.sql. Usage:   pg_restore [OPTION]... [FILE] General options:   -d, --dbname=NAME        connect to database name   -f, --file=FILENAME      output file name   -F, --format=c|d|t       backup file format (should be automatic)   -l, --list               print summarized TOC of the archive   -v, --verbose            verbose mode   -V, --version            output version information, then exit   -?, --help               show this help, then exit > > I'm running 10.6. > > thank you > > -- Command Prompt, Inc. || http://the.postgres.company/ || @cmdpromptinc *** A fault and talent of mine is to tell it exactly how it is. *** PostgreSQL centered full stack support, consulting and development. Advocate: @amplifypostgres || Learn: https://postgresconf.org ***** Unless otherwise stated, opinions are my own. *****