Re: Guidance Needed for PostgreSQL Upgrade from 12 to 15

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Guidance Needed for PostgreSQL Upgrade from 12 to 15
Date: 2024-11-18 17:26:12
Message-ID: CANzqJaAL-vn0iwP8QGEcVn9RqLv9Uw12qG6fV0h5+AkwW1oGBQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

No. Neither rsync nor streaming replication will do version upgrades.

The only ways to do version upgrade are:
1. pg_dump + pg_restore
2. pg_upgrade
3. Logical replication

On Mon, Nov 18, 2024 at 12:20 PM Motog Plus <mplus7535(at)gmail(dot)com> wrote:

> Thanks Ron for your suggestion.
> So for pg upgrade in streaming replication setup, rsync will be a better
> option for standby upgrade if we are using --link option or recreating the
> standby, once upgrade completes on primary? Any suggestions on this please.
>
> Best Regards,
> Raman
>
>
> On Mon, Nov 18, 2024, 22:41 Ron Johnson <ronljohnsonjr(at)gmail(dot)com> wrote:
>
>> On Mon, Nov 18, 2024 at 11:08 AM Motog Plus <mplus7535(at)gmail(dot)com> wrote:
>>
>>> Dear Team,
>>>
>>> We are in the process of upgrading our PostgreSQL database from version
>>> 12 to version 15. I would greatly appreciate your advice on the following:
>>>
>>> 1. Would it be recommended to use the --link option with the pg_upgrade
>>> command, from disk space point of view?
>>>
>>
>> Yes.
>>
>>
>>> Are there any potential downsides to consider?
>>>
>>
>> Very much: it's a one-way journey. No rolling back if something
>> goes wrong!
>>
>>
>>> 2. Do you have any suggestions or best practices for performing an
>>> efficient upgrade in a replication setup (streaming replication) for both
>>> the primary and standby servers?
>>>
>>
>> Streaming replication is not an upgrade method. Logical replication is
>> absolutely a valid method of upgrading PG on one server to PG on a
>> different server.
>>
>> --
>> Death to <Redacted>, and butter sauce.
>> Don't boil me, I'm still alive.
>> <Redacted> lobster!
>>
>

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Achilleas Mantzios 2024-11-18 19:10:47 Re: Guidance Needed for PostgreSQL Upgrade from 12 to 15
Previous Message Motog Plus 2024-11-18 17:19:54 Re: Guidance Needed for PostgreSQL Upgrade from 12 to 15