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 1oDqKU-00085F-1y for pgsql-general@arkaria.postgresql.org; Tue, 19 Jul 2022 16:44:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oDqKS-0001sg-UU for pgsql-general@arkaria.postgresql.org; Tue, 19 Jul 2022 16:44:12 +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 1oDqKS-0001kv-JK for pgsql-general@lists.postgresql.org; Tue, 19 Jul 2022 16:44:12 +0000 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oDqKQ-0002cP-1z for pgsql-general@lists.postgresql.org; Tue, 19 Jul 2022 16:44:12 +0000 Received: by mail-qt1-x829.google.com with SMTP id l14so9092678qtv.4 for ; Tue, 19 Jul 2022 09:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version; bh=VomFDKpuMt9ugcSdl6IaGw6NpYbgjTD8fUVxVZoAlzE=; b=U7VmKUhvS8tPjgJ8LlBMBZd5DW5wRN4VNmI3pWMJ9+eCZf/dKiL+86ex+U743BchOM D1u1wt3kz34ymOSfjeVyQGprjKxbTfYJBNHAhs4cxoP36LbnJnuvML4ISeT7IJxTg3+e VW4G8tfg9+Gxw5Lowox0hBB9ygunfv7/b2EyyJ/Uul61EYFdR56subXCovQvIIkLfs78 9EgaxfoFvTTZPXwxey/HGkoD4DG7PWUIWUuipoxuKDJdqxO1J3cusOU8V8tsw8vtQpvu 3rx7l+zoBLnyHbhj0G1M/aISh9UR+R6E38f98x/BFypQ9KQfGKoWfixc+wemM1q5fiDd HlkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version; bh=VomFDKpuMt9ugcSdl6IaGw6NpYbgjTD8fUVxVZoAlzE=; b=mS3XrjDe9/yFGdy5GXjn1mcOwuSseW2I5JQ1eHvomb/s1fRzeVGof9gBzbDbqJ7oJj DBYbA2+cyzLftk9vI0KXQcUueV5yj7ZKemgde2T3ameUs+UhPNHQMpajlAWh6c2ulzH3 eeOgrl45sAJ49Xmzu1YEOo08DEO4JidnD8Gj8/sQGKCfBSblT1JChOHjBarxIgRQwRn6 i3k244kK2pkOxKHTKsR0NFUk8rAymAci4MaFMaUqOCk9aMOTnYS+JtnzOJQRh7EGDh0L HCuIy0j2mQZJPK1jg0TY7pep9wdiBZfSSS9Y0YYiMwNSS3U64fCuXAD/v1zd50plsowG udvg== X-Gm-Message-State: AJIora/TifKCPHL4QgFfD08NsSO9NdDKc9MzkuoOJNCZt2i6ixexncJI lhW0ETWYmubT9xG0c/bvPzXHtbAWwY0= X-Google-Smtp-Source: AGRyM1s9C50rAa+Od3+km8sGeDMwYlb9Kv7AB04kRTRmfi2ExBbHyfTvnjFdsW5QQDGwl3J/IsxWFw== X-Received: by 2002:ac8:5a48:0:b0:31e:f288:3d68 with SMTP id o8-20020ac85a48000000b0031ef2883d68mr6855184qta.111.1658249048236; Tue, 19 Jul 2022 09:44:08 -0700 (PDT) Received: from [134.153.13.133] (n013h133.wst.mun.ca. [134.153.13.133]) by smtp.gmail.com with ESMTPSA id de17-20020a05620a371100b006b5a12eb838sm5686578qkb.31.2022.07.19.09.44.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jul 2022 09:44:07 -0700 (PDT) Date: Tue, 19 Jul 2022 14:14:01 -0230 From: Ronald Haynes To: pgsql-general@lists.postgresql.org, Ray O'Donnell Message-ID: <592b6261-8a4f-481f-853a-b80f159dcb1e@Spark> In-Reply-To: <89905c07-ae17-a1a7-2a26-ba8ab6109c50@rodonnell.ie> References: <12b2292b-372c-4fe0-9f63-7f641bad688a@Spark> <72da6868-8a2c-4378-8857-8391763393cb@Spark> <89905c07-ae17-a1a7-2a26-ba8ab6109c50@rodonnell.ie> Subject: Re: restore question X-Readdle-Message-ID: 592b6261-8a4f-481f-853a-b80f159dcb1e@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="62d6df56_23d86aac_5d3" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --62d6df56_23d86aac_5d3 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks Ray, running pSql -f backup-file.sql psql: error: =46ATAL: database =22rhaynes74=22 does not exist Which seems odd since rhaynes74 is a user not a database name in the file= . Sincerely, Dr. Ronald D. Haynes Professor, Department of Mathematics and Statistics Chair, MSc and Phd Scientific Computing Programs Memorial University of Newfoundland We acknowledge that the lands on=C2=A0which Memorial University=E2=80=99s= =C2=A0campuses are situated are in the=C2=A0traditional territories of di= verse=C2=A0Indigenous groups, and we=C2=A0acknowledge with respect the di= verse=C2=A0histories and cultures of the Beothuk,=C2=A0Mi=E2=80=99kmaq, I= nnu, and Inuit of this=C2=A0province. On Jul 19, 2022, 9:40 AM -0230, Ray O'Donnell , wrote= : > On 19/07/2022 11:11, Ronald Haynes wrote: > > Hi folks,=C2=A0=C2=A0I am a fairly novice postgresql user. > > > > > > > > I have a backup file for a couple of small postgresql databases.=C2=A0= =C2=A0 =C2=A0The > > backup file was created using postgresql 12.2, my Mac now has a > > postgresql 13.x or 14.x versions.=C2=A0 =C2=A0I would like to restore= the setup > > from the backup file. > > > > That looks like a dump file generated by pg=5Fdumpall, so restoring it > should be as simple as: > > psql -f backup-file.sql > > You'll possibly need other connection parameters as required by psql, > such as -U (the PostgreSQL user to use for connecting) or others. > > HTH, > > Ray. > > > -- > Raymond O'Donnell // Galway // Ireland > ray=40rodonnell.ie --62d6df56_23d86aac_5d3 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Thanks Ray, running&=23160;

pSql -f backup-file.sql&=23160;



psql: error: =46ATAL: database =22rhaynes74=22 does not exist

Which seems odd since rhaynes74 is a user not a database name in the file= .&=23160;

Sincerely,

Dr. Ronald D. Haynes
Professor, Department of Mathematics and Statistics
Chair, MSc and Phd Scientific Computing Programs
Memorial University of Newfoundland

We acknowledge that the lands on&=23160;= which Memorial University=E2=80=99s&=23160;campuses are situated are in t= he&=23160;traditional territories of diverse&=23160;Indigenous groups, an= d we&=23160;acknowledge with respect the diverse&=23160;histories and cul= tures of the Beothuk,&=23160;Mi=E2=80=99kmaq, Innu, and Inuit of this&=23= 160;province.
On Jul 19, 2022, 9:40 AM -0230, Ray= O'Donnell <ray=40rodonnell.ie>, wrote:
On 19/07/2022 11:11, Ronald Haynes wrote:
Hi folks,&=23160;&=23160;I am a fairly novi= ce postgresql user.



I have a backup file for a couple of small postgresql databases.&=23160;&= =23160; &=23160;The
backup file was created using postgresql 12.2, my Mac now has a
postgresql 13.x or 14.x versions.&=23160; &=23160;I would like to restore= the setup
from the backup file.


That looks like a dump file generated by pg=5Fdumpall, so restoring it should be as simple as:

psql -f backup-file.sql

You'll possibly need other connection parameters as required by psql,
such as -U (the PostgreSQL user to use for connecting) or others.

HTH,

Ray.


--
Raymond O'Donnell // Galway // Ireland
ray=40rodonnell.ie
--62d6df56_23d86aac_5d3--