pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
upgrade postgres 9.5 to 9.6
5+ messages / 4 participants
[nested] [flat]

* upgrade postgres 9.5 to 9.6
@ 2021-01-15 13:17 Atul Kumar <akumar14871@gmail.com>
  2021-01-15 13:32 ` Re: upgrade postgres 9.5 to 9.6 Enrico Pirozzi <sscotty71@gmail.com>
  2021-01-15 15:17 ` Re: upgrade postgres 9.5 to 9.6 Thomas Kellerer <shammat@gmx.net>
  0 siblings, 2 replies; 5+ messages in thread

From: Atul Kumar @ 2021-01-15 13:17 UTC (permalink / raw)
  To: pgsql-general <pgsql-general@lists.postgresql.org>

Hi,

I want to upgrade my server from postgres 9.5 to 9.6, but my DB size
is in TBs and I want to do it in minimum downtime (2-3 hours) so
please help me how should I perform it.


Please share the document, if possible, it will be grateful.



Regards,
Atul





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: upgrade postgres 9.5 to 9.6
  2021-01-15 13:17 upgrade postgres 9.5 to 9.6 Atul Kumar <akumar14871@gmail.com>
@ 2021-01-15 13:32 ` Enrico Pirozzi <sscotty71@gmail.com>
  2021-01-15 14:14   ` Re: upgrade postgres 9.5 to 9.6 Atul Kumar <akumar14871@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Enrico Pirozzi @ 2021-01-15 13:32 UTC (permalink / raw)
  To: Atul Kumar <akumar14871@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>

Hi Atul,
you could use logical replication and do an hot upgrade between the 2 servers with a zero downtime ;)

If you want to use logical replication between a 9.5 , 9.6 version you could use for example pglogical.

You could achieve the same result using an external logic replication tool like slony, although pglogical is more powerful.

I hope that this can help you 

Regards,
Enrico

On Fri, 15 Jan 2021 18:47:51 +0530
Atul Kumar <akumar14871@gmail.com> wrote:

> Hi,
> 
> I want to upgrade my server from postgres 9.5 to 9.6, but my DB size
> is in TBs and I want to do it in minimum downtime (2-3 hours) so
> please help me how should I perform it.
> 
> 
> Please share the document, if possible, it will be grateful.
> 
> 
> 
> Regards,
> Atul

-- 
Enrico Pirozzi <sscotty71@gmail.com>





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: upgrade postgres 9.5 to 9.6
  2021-01-15 13:17 upgrade postgres 9.5 to 9.6 Atul Kumar <akumar14871@gmail.com>
  2021-01-15 13:32 ` Re: upgrade postgres 9.5 to 9.6 Enrico Pirozzi <sscotty71@gmail.com>
@ 2021-01-15 14:14   ` Atul Kumar <akumar14871@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Atul Kumar @ 2021-01-15 14:14 UTC (permalink / raw)
  To: Enrico Pirozzi <sscotty71@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>

May you provide me steps to perform it (logical replication upgrade).

I will be thankful to you.


Regards
Atul



On Friday, January 15, 2021, Enrico Pirozzi <sscotty71@gmail.com> wrote:

> Hi Atul,
> you could use logical replication and do an hot upgrade between the 2
> servers with a zero downtime ;)
>
> If you want to use logical replication between a 9.5 , 9.6 version you
> could use for example pglogical.
>
> You could achieve the same result using an external logic replication tool
> like slony, although pglogical is more powerful.
>
> I hope that this can help you
>
> Regards,
> Enrico
>
> On Fri, 15 Jan 2021 18:47:51 +0530
> Atul Kumar <akumar14871@gmail.com> wrote:
>
> > Hi,
> >
> > I want to upgrade my server from postgres 9.5 to 9.6, but my DB size
> > is in TBs and I want to do it in minimum downtime (2-3 hours) so
> > please help me how should I perform it.
> >
> >
> > Please share the document, if possible, it will be grateful.
> >
> >
> >
> > Regards,
> > Atul
>
> --
> Enrico Pirozzi <sscotty71@gmail.com>
>

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: upgrade postgres 9.5 to 9.6
  2021-01-15 13:17 upgrade postgres 9.5 to 9.6 Atul Kumar <akumar14871@gmail.com>
@ 2021-01-15 15:17 ` Thomas Kellerer <shammat@gmx.net>
  2021-01-15 15:35   ` Re: upgrade postgres 9.5 to 9.6 Ron <ronljohnsonjr@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Thomas Kellerer @ 2021-01-15 15:17 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Atul Kumar schrieb am 15.01.2021 um 14:17:
> I want to upgrade my server from postgres 9.5 to 9.6, but my DB size
> is in TBs and I want to do it in minimum downtime (2-3 hours) so
> please help me how should I perform it.
>
>
> Please share the document, if possible, it will be grateful.

pg_upgrade with the --link option should only take a few minutes.


Is there a reason you are upgrading to 9.6 and not 12 or 13?

9.6 will be end-of-live this November (in 10 months), you will have to do another upgrade then.

Thomas





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: upgrade postgres 9.5 to 9.6
  2021-01-15 13:17 upgrade postgres 9.5 to 9.6 Atul Kumar <akumar14871@gmail.com>
  2021-01-15 15:17 ` Re: upgrade postgres 9.5 to 9.6 Thomas Kellerer <shammat@gmx.net>
@ 2021-01-15 15:35   ` Ron <ronljohnsonjr@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Ron @ 2021-01-15 15:35 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 1/15/21 9:17 AM, Thomas Kellerer wrote:
[snip]
> Is there a reason you are upgrading to 9.6 and not 12 or 13?

The application software vendor might only certify the application on 9.6.
Or /management/, in their infinite "wisdom", might insist on a One-version 
upgrade.
Or 9.6 might be the default version in the distro they're migrating to, and 
Security Policy dictates that No Outside Software is allowed.  (Last year, I 
watched in horror as a database was upgraded from 8.4 *to 9.2* for that very 
reason.)

> 9.6 will be end-of-live this November (in 10 months), you will have to do another upgrade then.

You'd be shocked to see how much data is pumped through *old* Postgresql 
databases.  "It works, so we're not going to fix it." And they don't want to 
pony up for a new version of the application, and spend the money (manpower 
and h/w resources) validating it.

-- 
Angular momentum makes the world go 'round.

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2021-01-15 15:35 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-01-15 13:17 upgrade postgres 9.5 to 9.6 Atul Kumar <akumar14871@gmail.com>
2021-01-15 13:32 ` Enrico Pirozzi <sscotty71@gmail.com>
2021-01-15 14:14   ` Atul Kumar <akumar14871@gmail.com>
2021-01-15 15:17 ` Thomas Kellerer <shammat@gmx.net>
2021-01-15 15:35   ` Ron <ronljohnsonjr@gmail.com>

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