pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Stephen Haddock <haddock.stephenm@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: psql backward compatibility
Date: Wed, 18 Nov 2020 08:16:43 -0800
Message-ID: <f0bf61e1-962c-a559-f188-91f640a0c8aa@aklaver.com> (raw)
In-Reply-To: <CAAPwSkR12Hc1g9n+jqV3k9nCtavcPpL4KDLOrNYOajL316g9_w@mail.gmail.com>
References: <CAAPwSkR12Hc1g9n+jqV3k9nCtavcPpL4KDLOrNYOajL316g9_w@mail.gmail.com>

On 11/18/20 8:05 AM, Stephen Haddock wrote:
> Hello,
> 
> When upgrading an older version of postgres, version 8.4 for example, to 
> a newer version such as 9.6, does the data have to be migrated immediately?
> 
> It looks like the recommended method is to dump the data, upgrade, 
> initialize a new cluster, and then restore the dumped data into the 
> newer version. My question is whether the data dump and restore must be 
> done immediately. It appears that 9.6 is able to run against the older 
> cluster (DB service starts, queries work, etc), and the data could be 

Hmm, missed that. As David said that should not happen and if you are 
running a new binary against an old cluster then you will get corruption.

> migrated days or weeks later. I don't know if that is asking for issues 
> down the line though such as 9.6 corrupting the data due to 
> incompatibilities between the two versions.
> 
> Thanks!


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (12+ messages)  latest in thread

Message-ID: <f0bf61e1-962c-a559-f188-91f640a0c8aa@aklaver.com>
Permalink:  ../f0bf61e1-962c-a559-f188-91f640a0c8aa@aklaver.com/
Also on:    postgresql.org/message-id/f0bf61e1-962c-a559-f188-91f640a0c8aa@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, haddock.stephenm@gmail.com
  Subject: Re: psql backward compatibility
  In-Reply-To: <f0bf61e1-962c-a559-f188-91f640a0c8aa@aklaver.com>
  References: <CAAPwSkR12Hc1g9n+jqV3k9nCtavcPpL4KDLOrNYOajL316g9_w@mail.gmail.com> <f0bf61e1-962c-a559-f188-91f640a0c8aa@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