pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: shashidhar Reddy <shashidharreddy001@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: How to upgrade postgres version 8 to 13
Date: Tue, 5 Jul 2022 11:05:04 -0700
Message-ID: <fa58b6dc-6f47-46ff-1d25-db567dc0020d@aklaver.com> (raw)
In-Reply-To: <CAH=zU4tZQXCDpL=q9wKipp1nWVDMEf=42UZKwwiojUHHfRGy2Q@mail.gmail.com>
References: <CAH=zU4tGoG7j6jz+UqE+myZUmf75aiC=wUQvdq9jo43k9vwWmw@mail.gmail.com>
	<de9187e3-779e-acb8-5597-561395fcbc74@aklaver.com>
	<CAH=zU4t1UksWcr1SRRaPccmnoZBUBJCKeY19hbqGvsSbu_C=3Q@mail.gmail.com>
	<27c905f1-3388-8691-8066-a94db839a09c@aklaver.com>
	<CAH=zU4tZQXCDpL=q9wKipp1nWVDMEf=42UZKwwiojUHHfRGy2Q@mail.gmail.com>

On 7/5/22 10:56 AM, shashidhar Reddy wrote:
> Down time 10 to 15 hrs
> Hardware specs are also not sure for now as it is client machine.

This is going to be a difficult task for the following reasons:

1) pg_upgrade(https://www.postgresql.org/docs/current/pgupgrade.html) 
only goes back to 8.4. So you will need to use other tools if you want 
to emulate it.

2) 8.2 --> 13 represent 14 years of changes. In particular the implicit 
type cast changes that happened in 8.3. You will need to testing to 
determine whether what you are doing in 8.2 is going to work in 13. Also 
why version 13?

3) The size of the data set.

In other words there is going to be a lot of preliminary work and 
testing that is going to need to be done before you even start the 
transfer. The first of that is determining what your setup is. My guess 
is you will end up doing this in stages of using intervening Postgres 
versions.

> 
> On Tue, 5 Jul, 2022, 11:22 pm Adrian Klaver, <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     On 7/5/22 10:48 AM, shashidhar Reddy wrote:
> 
>     Reply to list also
> 
>     Ccing list
> 
>      > Hello Adrian,
>      >
>      > Os is UbuntuĀ  not sure about the version I am looking for the low
>      > downtime method it may be on same or different machine but same
>     machine
>      > is preferable
>     Hardware specs?
> 
>     How low is low for downtime?
> 
> 
> 
> 
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (9+ messages)  latest in thread

Message-ID: <fa58b6dc-6f47-46ff-1d25-db567dc0020d@aklaver.com>
Permalink:  ../fa58b6dc-6f47-46ff-1d25-db567dc0020d@aklaver.com/
Also on:    postgresql.org/message-id/fa58b6dc-6f47-46ff-1d25-db567dc0020d@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, shashidharreddy001@gmail.com
  Subject: Re: How to upgrade postgres version 8 to 13
  In-Reply-To: <fa58b6dc-6f47-46ff-1d25-db567dc0020d@aklaver.com>
  References: <CAH=zU4tGoG7j6jz+UqE+myZUmf75aiC=wUQvdq9jo43k9vwWmw@mail.gmail.com> <de9187e3-779e-acb8-5597-561395fcbc74@aklaver.com> <CAH=zU4t1UksWcr1SRRaPccmnoZBUBJCKeY19hbqGvsSbu_C=3Q@mail.gmail.com> <27c905f1-3388-8691-8066-a94db839a09c@aklaver.com> <CAH=zU4tZQXCDpL=q9wKipp1nWVDMEf=42UZKwwiojUHHfRGy2Q@mail.gmail.com> <fa58b6dc-6f47-46ff-1d25-db567dc0020d@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