pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: tony@exquisiteimages.com
To: pgsql-general@lists.postgresql.org
Subject: Re: Upgrading from PostgreSQL 9.3 to 11.6
Date: Fri, 20 Dec 2019 08:02:25 -0800
Message-ID: <a7e2eab6-7480-cf58-468e-2e33fda1ddce@aklaver.com> (raw)
In-Reply-To: <26671fc46aec0cf809d9ea7665f7f6b8@exquisiteimages.com>
References: <26671fc46aec0cf809d9ea7665f7f6b8@exquisiteimages.com>

On 12/20/19 5:58 AM, tony@exquisiteimages.com wrote:
> I have a PostgreSQL 9.3 installation that I finally have time to migrate 
> to a currently supported version. The server that the installation is 
> installed on is also at its end of service.
> 
> Can anyone help me with completing this conversion as securely and 
> efficiently as possible with the least amount of down time? Also, once 
> it has been converted over, is there any best practice for ensuring that 
> there has been no corruption?

The choices off the top of my head:

1) pg_dump/pg_restore using the 11.6 binaries of both.

2) Using pg_upgrade(www.postgresql.org/docs/11/pgupgrade.html) from 11.6.

3) Setting up Slony(http://www.slony.info/).

Downtime is hard to predict, especially if you have not done a procedure 
before. The simplest would be the dump/restore.

I would go through the Release Notes for the first release of each major 
version 9.4, 9.5, 9.6 and 11 to check out any behavior changes that 
might trip you up. Given the number of versions you are stepping over 
setting up a test instance of 11.6 to do the upgrade against would be a 
good thing to do.


> 
> The database is 600GB in size. We do not have any custom types being used.
> 
> Thanks for any direction.
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (3+ messages)  latest in thread

Message-ID: <a7e2eab6-7480-cf58-468e-2e33fda1ddce@aklaver.com>
Permalink:  ../a7e2eab6-7480-cf58-468e-2e33fda1ddce@aklaver.com/
Also on:    postgresql.org/message-id/a7e2eab6-7480-cf58-468e-2e33fda1ddce@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, tony@exquisiteimages.com
  Subject: Re: Upgrading from PostgreSQL 9.3 to 11.6
  In-Reply-To: <a7e2eab6-7480-cf58-468e-2e33fda1ddce@aklaver.com>
  References: <26671fc46aec0cf809d9ea7665f7f6b8@exquisiteimages.com> <a7e2eab6-7480-cf58-468e-2e33fda1ddce@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