Re: New to postgres

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: "Carrillo, Juan R" <JCarrillo(at)usbr(dot)gov>
Cc: "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org>
Subject: Re: New to postgres
Date: 2021-06-02 07:07:59
Message-ID: 20210602070759.GA22783@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Tue, Jun 01, 2021 at 07:14:13PM +0000, Carrillo, Juan R wrote:
> Good afternoon
>
> I am New to postgres Database. I have been tasked by my current
> management to upgrade our current postgres DB version 9.6.15 to
> a supported version of postgres. I am not sure if we should upgrade
> to 10, 11, 12 or 13. We are currently running postgres 9.6.15 on Red
> Hat Enterprise Linux Work Stations - Linux Version 7. I believe we
> should be running Linux 8 on RHEL. I was wondering if Dell Serers
> would support an upgrade of postgres 10 to Linux 8. Again I am New to
> postgres DB and any assistance is appreciated.

Hi.
This is somewhat complicated.

First of all - you should try to upgrade to newest - 13.3.
Second - for RedHat-ish distributions there is
https://yum.postgresql.org/, and it seems that there is pg 13 for RH7
(https://yum.postgresql.org/packages/#pg13)

Now, about how to do the upgrade - there are many paths, some are
simple, some are more complicated, some require more downtime, some
less.

Which path you will chose depends on your data size, downtime
requirements, and expertise level.

Unfortunately I can't provide much more information about redhat, as
I simply don't know it, and am not sure what tools, especially for
upgrading, they provide.

Generally, I would suggest that you made a copy of your production
database on some side system (even your laptop/workstation), and try
various approaches.

Couple of tools, in order of easy to hard to learn from scratch:
1. pg_dump and pg_restore
2. pg_upgrade
3. pglogical replication

Best regards,

depesz

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Pól Ua Laoínecháin 2021-06-02 11:48:56 Scripting with subdirectories - how to specify script locations.
Previous Message Carrillo, Juan R 2021-06-01 19:14:13 New to postgres