pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Rich Shepard <rshepard@appl-ecosys.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Move cluster to new host, upgraded version
Date: Sun, 11 Nov 2018 19:33:09 +0000
Message-ID: <87wopjv2gu.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <alpine.LNX.2.20.1811111118250.28051@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.1811111118250.28051@salmo.appl-ecosys.com>

>>>>> "Rich" == Rich Shepard <rshepard@appl-ecosys.com> writes:

 Rich> My current desktop server/workstation is running version 10.5.
 Rich> I'm configuring a replacement desktop and have installed version
 Rich> 11.1 on it. To copy all databases from the 10.5 version to the
 Rich> 11.1 version I assume that I should do a pg_dumpall on the
 Rich> current host and read in that file on the replacement host. Is
 Rich> this the proper procedure?

The most reliable and preferred procedure is to use the _new_ version's
pg_dumpall, for example by allowing access to the old host from the new
one (possibly using an ssh port forward), or (on OSes that make it easy
to do package installs of multiple versions) to install the new pg_dump
and pg_dumpall on the old system.

Using the old version's pg_dumpall also generally speaking works, but
there may be occasional rough edges.

-- 
Andrew (irc:RhodiumToad)




view thread (25+ messages)  latest in thread

Message-ID: <87wopjv2gu.fsf@news-spur.riddles.org.uk>
Permalink:  ../87wopjv2gu.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87wopjv2gu.fsf@news-spur.riddles.org.uk

 · 

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: andrew@tao11.riddles.org.uk, rshepard@appl-ecosys.com
  Subject: Re: Move cluster to new host, upgraded version
  In-Reply-To: <87wopjv2gu.fsf@news-spur.riddles.org.uk>
  References: <alpine.LNX.2.20.1811111118250.28051@salmo.appl-ecosys.com> <87wopjv2gu.fsf@news-spur.riddles.org.uk>

* 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