From: Adrian Klaver <adrian.klaver@aklaver.com>
To: David Gauthier <dfgpostgres@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: v11.5- v15.3 upgrade (linux)
Date: Wed, 6 Mar 2024 17:55:49 -0800
Message-ID: <acc088f5-7844-4b50-a561-d3bcc483bce7@aklaver.com> (raw)
In-Reply-To: <CAEs=6D=T+eAj7GJZiNz6_o60OqAYmy4xd9jJ1tbqcp+X17etPA@mail.gmail.com>
References: <CAEs=6D=T+eAj7GJZiNz6_o60OqAYmy4xd9jJ1tbqcp+X17etPA@mail.gmail.com>
On 3/6/24 16:19, David Gauthier wrote:
> Hi:
> I'm a PG user in a big corp with an IT dept that administers a PG
> server/instance that I use. It's an old install, v11.5, and we need to
> upgrade to v15.3. They want to bring the upgraded DB up on a new linux
> vm which has OS upgrades of its own. So it's a move AND an upgrade.
> There are 2 concerns....
>
> First has to do with a jump from 11.5 - 15.3 ? Is it safe to do this
> given so many major intermediate versions being skipped ?
I would definitely read the release notes for 12.0, 13.0, 14.0 and 15.0.
They will show the breaking changes.
>
> Second has to do with the 11.5 having the perlplu extension installed.
> The DBA created a v15.3 instance on the new server and tried to restore
> an 11.5 backup onto/into the 15.3 (as an experiment) but got several
> error messages like this... "ERROR:extension "plperlu" is not
> available". I really didn't need any of the perlplu procs/funcs I
How are and from where are you installing the Postgres package(s)?
Generally the procedural languages packages are separate from the server
package. I'm betting the error is occurring because the plperlu package
was not installed for the 15.3 instance of Postgres.
> created, so I dropped them all but the error persists. I suggested to
> drop the perlplu extension in the 11.5 (drop extension perlplu cascade)
> but there is a concern that it might break something. So the question
> is... Will dropping the perlplu extension break anything (given that
> there are no perlplu procs/funcs). Just to be safe, "select
> l.lanname,count(*) from pg_proc p, pg_language l WHERE p.prolang = l.oid
> group by 1;" shows that there are no perlplu procs/fns.
The would be plan 2 if installing the plperlu package is not possible.
>
> Finally, what is the best approach to making the server move AND PG
> upgrade...
> 1) backup the 11.5 and restore into a 15.3 PG instance on the upgraded
> server ?
I would backup the 11.5 instance whatever else you plan to do, better
safe then sorry.
> 2) upgrade the 11.3 DB to 15.3, back that up and then restore on the
> upgraded server ?
> 3) upgrade the 11.3 DB to 15.3, then set the 15.3 destination server as
> a replicated DB (let it populate) then designate the destination server
> as the primary then cut the old server loose ? (this approach would
> probably minimize DB downtime by a lot I would think)
The above is going to depend on the size of the database and any
possible breaking/behavioral changes you find in the release notes.
If you have the ability to do a test migration on a test machine where
oops are not a problem that would be way to verify the 2) and 3) options.
>
> Any other suggestions ?
>
> Thanks for any advise/help !
--
Adrian Klaver
adrian.klaver@aklaver.com
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, dfgpostgres@gmail.com
Subject: Re: v11.5- v15.3 upgrade (linux)
In-Reply-To: <acc088f5-7844-4b50-a561-d3bcc483bce7@aklaver.com>
References: <CAEs=6D=T+eAj7GJZiNz6_o60OqAYmy4xd9jJ1tbqcp+X17etPA@mail.gmail.com> <acc088f5-7844-4b50-a561-d3bcc483bce7@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