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 1oDqRA-0008Qm-Ne for pgsql-general@arkaria.postgresql.org; Tue, 19 Jul 2022 16:51:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oDqR9-0004gw-KL for pgsql-general@arkaria.postgresql.org; Tue, 19 Jul 2022 16:51:07 +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 1oDqR9-0004gm-9v for pgsql-general@lists.postgresql.org; Tue, 19 Jul 2022 16:51:07 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDqR3-0002gh-Nm for pgsql-general@lists.postgresql.org; Tue, 19 Jul 2022 16:51:06 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 97C693200904; Tue, 19 Jul 2022 12:50:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 19 Jul 2022 12:50:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1658249458; x= 1658335858; bh=+RVkQguONNADRa4dPcpwbHW+orS+AEhp79aYHcpFKsA=; b=K j7lISyZiOchk4AcJiLWcqlEEhZnNw053SnGwgQrDwBCLjsItHCJ977u3VEQN2UhB V3SLHc7jZf6wKKZuyBtxkBG/5wljTpjiPqILncYDpVqU7islDqrvKSAfjMcBVS42 +vwfCm+Lw1u52s2smE8Xbql7K9oaa0PW47SIR/JKq+RGb49SZaqzaq8keV0YzWUg siUn9qDSd9zsTWSF+kTXDRJJdHLF+xbMcYP87egIQOH2Edz3E6rJqivmhtgOcAbp gHGHppViFFYIy9U+oBTUP9G98hMmNeW1+sUQw4R3rSYlWMSdOiDs0mleUcM4bHPv PAKfEY2f2NSxUH7wqtpvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1658249458; x= 1658335858; bh=+RVkQguONNADRa4dPcpwbHW+orS+AEhp79aYHcpFKsA=; b=Q qRomtPozFGLcww8c1zZTxb0wCuVVTW6EohGK++IrI/jcIfFFHp0DqQjmr7C+1s+q baFEq5V6ATg/S3N7tawnhQOJVsw7yQdhlce0b5bOEW/X38yDQWzPBlhg1MCbKm+c WH1aJg3voy6m8YFSiT0m/aG3Z+J2RspXPofHE+px3yqep5HjfqVmOLbv4qSvl0Yh yDsnKImEIBfF49zOzs3WtFceSKhg5tWCdi5VCv5N3SeeESxcsGisW5pQAIdOg/1w pSrUTymxK8EIsNShGzOPrMrvIArbglxm/6TYTHJyZp6TB6ImRzha6+jU8Xu1DZIc 6/3q0fcPw3Qxzm8gZ+TBw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeltddguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfevfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegu rhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhmqeenucggtffrrghtthgvrhhnpeduhfeiteduvedtgfeikeeuudetveevueekvedu tdfhteeluedtudduvdefveejjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 19 Jul 2022 12:50:57 -0400 (EDT) Subject: Re: restore question To: Benedict Holland , Ronald Haynes Cc: pgsql-general , Ray O'Donnell References: <12b2292b-372c-4fe0-9f63-7f641bad688a@Spark> <72da6868-8a2c-4378-8857-8391763393cb@Spark> <89905c07-ae17-a1a7-2a26-ba8ab6109c50@rodonnell.ie> <592b6261-8a4f-481f-853a-b80f159dcb1e@Spark> From: Adrian Klaver Message-ID: Date: Tue, 19 Jul 2022 09:50:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/19/22 9:49 AM, Benedict Holland wrote: > You have to create the database to restore to. Then pg_resrore should work. The OP is not using pg_restore but psql as the dump file is plain text. > > Thanks, > Ben -- Adrian Klaver adrian.klaver@aklaver.com