pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Benedict Holland <benedict.m.holland@gmail.com>
To: Ronald Haynes <rhaynes74@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Cc: Ray O'Donnell <ray@rodonnell.ie>
Subject: Re: restore question
Date: Tue, 19 Jul 2022 09:50:56 -0700
Message-ID: <b59bdce4-c6f2-4fe9-3356-3b8e3915f26d@aklaver.com> (raw)
In-Reply-To: <CAD+mzowsiwyffLyKOfFo8ambG7LQcMREsZn-7Sc_LCOz_BagvA@mail.gmail.com>
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>
	<CAD+mzowsiwyffLyKOfFo8ambG7LQcMREsZn-7Sc_LCOz_BagvA@mail.gmail.com>

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





view thread (7+ messages)  latest in thread

Message-ID: <b59bdce4-c6f2-4fe9-3356-3b8e3915f26d@aklaver.com>
Permalink:  ../b59bdce4-c6f2-4fe9-3356-3b8e3915f26d@aklaver.com/
Also on:    postgresql.org/message-id/b59bdce4-c6f2-4fe9-3356-3b8e3915f26d@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, benedict.m.holland@gmail.com, rhaynes74@gmail.com, ray@rodonnell.ie
  Subject: Re: restore question
  In-Reply-To: <b59bdce4-c6f2-4fe9-3356-3b8e3915f26d@aklaver.com>
  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> <CAD+mzowsiwyffLyKOfFo8ambG7LQcMREsZn-7Sc_LCOz_BagvA@mail.gmail.com> <b59bdce4-c6f2-4fe9-3356-3b8e3915f26d@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox