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 1gMJZd-0000uy-Nq for pgsql-general@arkaria.postgresql.org; Mon, 12 Nov 2018 21:16:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gMJXW-0007Cl-9q for pgsql-general@arkaria.postgresql.org; Mon, 12 Nov 2018 21:14:34 +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 1gMJXV-00079u-S5 for pgsql-general@lists.postgresql.org; Mon, 12 Nov 2018 21:14:34 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMJXS-0007GI-W3 for pgsql-general@lists.postgresql.org; Mon, 12 Nov 2018 21:14:32 +0000 Received: by mail-pl1-x643.google.com with SMTP id n4-v6so4909998plp.2 for ; Mon, 12 Nov 2018 13:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=d6Uar0VFMVN6duya5A/Y4FJnMpv8v5HAVI8cS3LWx9s=; b=Zitm9FXeAlcx96neqN1OZvXYcOt+dFQyJjzgY3N/MOoUBnPiCR1vkImXxAI0vYqsLA mXVYDZHdaVeIJxCOC3RW1eWAJeY1nCqPx9bOaiivIzOwO/+yx7KsuqGuXKvMpZpfMvz6 FBQ7A10XaCZ1ZYnOagyni7jRPWQi5LQD9CJuTiv9oVRz5T5Ik6WOORSWi5ZKZ8vEV656 m159okY4BvRssUtL8Hfli2o/lDmKnbofMTB7TqlPDYVxT22/jWyr4hfckwBbt5ZHndNd WEg3k4sWMowUN5OqLx0BuKsMJ9jpaosXrnD3WzaA/lmF5Z8/IAnUhmsB7+dgD4d0Xc+x JNTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=d6Uar0VFMVN6duya5A/Y4FJnMpv8v5HAVI8cS3LWx9s=; b=oI/Luu5ZACV5wesV8F38Bpde8qCTk56nBfuBSlJxR8H9U9ukNShXgNe+LN+JQCZT6P Eh1wATygSfnhgVZ5QC0Apd8dnBPTwy8Y6QHXnSe7sLRh5uUkI8AvQLhvu3k8JUkbyAdL dYIxoiaNMlcbNXq2bdddkAD3NHXunhtdrK1kr9/2rtT/19ayVgP0jQ723piP5uCJ1bwQ IAjoSn1feRQUzrU5JrplbMZo1c6RlPZH+sKK3Uu8+EBjuY987HE2gnct3mKt7ciE1ZZN 7tmNxiFkd+XjEkTlHHokBgCQqZzsV0OAICjSEfD60AJcHe0GV8tTTZuLeTxeMWKH1vAK b7cg== X-Gm-Message-State: AGRZ1gKYO+W2DqqlS/mYgKI/eMrmbLSgqWuV7DO5XESL4OA/hPmbJvj5 bH7rREyfbk3Eik+TaTIfNsm9VY/Z X-Google-Smtp-Source: AJdET5fSeXr1ftyYkpfWY4TBKjNINb2baxgIeLxgz9Q8CZFGBvAjjM77fv2UlmOkn16SYRXxBN6Erg== X-Received: by 2002:a17:902:aa8d:: with SMTP id d13-v6mr2459773plr.74.1542057269487; Mon, 12 Nov 2018 13:14:29 -0800 (PST) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id m129-v6sm20595971pfm.78.2018.11.12.13.14.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 13:14:29 -0800 (PST) Subject: Re: Is pg_restore in 10.6 working? To: Tom Lane Cc: David , pgsql-general@lists.postgresql.org References: <28066.1542048297@sss.pgh.pa.us> <708fdafe-dfa3-7d26-59fa-992595671b77@gmail.com> <9b015a12-d265-d863-2554-08602b5d913b@gmail.com> <1937.1542056786@sss.pgh.pa.us> From: Rob Sargent Message-ID: Date: Mon, 12 Nov 2018 14:14:28 -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: <1937.1542056786@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/12/18 2:06 PM, Tom Lane wrote: > Rob Sargent writes: >> On 11/12/18 12:39 PM, David wrote: >>> I'm not following your question.  The pre-data and post-data sections >>> each go to an individual file, but the data section goes to a >>> directory.  I can restore the files using psql, but it is the restore >>> of the directory that is hanging. > The other bit that I think David is missing is that pg_dump's default > output format is a plain-text SQL script, which is meant to be fed to > psql not pg_restore. To get something that pg_restore can work with, > you need to specify one of the non-text dump formats (typically, you'd > use -Fc or -Fd). > > The situation in which you'd want to use "pg_restore -f" is if you > want to reconstruct a plain-text SQL script from one of the non-text > dump formats, rather than just restoring directly into a database. > > regards, tom lane Roger that. Thank you.