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 1gMHqh-0003YU-AS for pgsql-general@arkaria.postgresql.org; Mon, 12 Nov 2018 19:26:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gMHqf-0001QC-49 for pgsql-general@arkaria.postgresql.org; Mon, 12 Nov 2018 19:26:13 +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 1gMHqB-0007cz-Cg for pgsql-general@lists.postgresql.org; Mon, 12 Nov 2018 19:25:43 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMHq7-0004r2-Sw for pgsql-general@lists.postgresql.org; Mon, 12 Nov 2018 19:25:41 +0000 Received: by mail-pl1-x642.google.com with SMTP id b5-v6so4785980pla.6 for ; Mon, 12 Nov 2018 11:25:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=q3RZ9IY5C6CdnJksYYTkHmtIfXlugD4wdw0FGIq5yJk=; b=Al/4Ywdd4LpMawHZzLGRUwm/UX0AXeeRIcaEh2iNqhxG+/pUeFpFO5CGTSMvPQUHJK oduR3DmQtxRAftwY9GFLBSkcmcbDuWkaz3uUm86bJlb3L+AIU76iu3bArZq4JmIguXvU vsnaqnk17QarLy548r7nbv/Ma3BPQPSPfYgxz2o7XAu1PyhTxUnA0F15IVJC7HyBfxSi uAcspsZgqxovy5YFBGkKjjX0OYBJWjHsCMisxPOMt4xspHb9QdAideK8C35i2TYcCySa qyfRrGe/CLflHWGpRk9csX72lA04veJqpZoHbd89E4JjPHL6v5EiQFxcwcbwTT7JKP5C 1BHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=q3RZ9IY5C6CdnJksYYTkHmtIfXlugD4wdw0FGIq5yJk=; b=i0Pom3xld1aUm4iKPAx3ApczwpGK6QZ/SnU699wsrBBN2Fl1mVdJo+bM6ARRQq5RvP UoT1zoHN6ZdnMHh1d1PzJUwAfS3nmG8Mh7zLYmuqc91YnqwEffQfMxWc+2uohD/47qlj 8IbH2WWZPv18rOloJriL08m2gMaR+QgNb6ZCjHAJegfy3dhdfsGH/0DLnBnYUgTdtvgQ xoDNUD85n3kdjVGhhivkqfVXc5GFOtynBFZc6eZTaErhp1dYOeGgL1jIvjh9Fso07P7k aaZ9+2H0Xi6N+pFjqu/a53LkneZ0SHKQ/P9s8FVPCgDFoFDFhCiH7PQdZ0liYUbxzOSH sJbw== X-Gm-Message-State: AGRZ1gKsCybzqM27aoYOJ7/GZhcBfJLA/zdrjnUn4pJ4M/x7CH0caxkU ITqpk/TA15/XpHWwlm6ngTILgJrh X-Google-Smtp-Source: AJdET5fJv+hzI+Ytpauq1A2hGRWdYBaWhgQHWMU+DnjX0JpwRR4iTIoV9IX0rUHUpVvmWIaeHtnUJg== X-Received: by 2002:a17:902:6bc1:: with SMTP id m1-v6mr2143657plt.34.1542050738199; Mon, 12 Nov 2018 11:25:38 -0800 (PST) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id w10-v6sm20811870pfg.1.2018.11.12.11.25.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 11:25:37 -0800 (PST) Subject: Re: Is pg_restore in 10.6 working? To: pgsql-general@lists.postgresql.org References: <28066.1542048297@sss.pgh.pa.us> From: Rob Sargent Message-ID: <708fdafe-dfa3-7d26-59fa-992595671b77@gmail.com> Date: Mon, 12 Nov 2018 12:25:36 -0700 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: <28066.1542048297@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/12/18 11:44 AM, Tom Lane wrote: > 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 > regards, tom lane > In this case, does the "General options" -f make sense? restoring to a file?