pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedUpgrading from Postgresql 9.1 to 10
9+ messages / 5 participants
[nested] [flat]
* Upgrading from Postgresql 9.1 to 10
@ 2018-02-14 14:42 pavan95 <pavan.postgresdba@gmail.com>
2018-02-14 14:47 ` Re: Upgrading from Postgresql 9.1 to 10 Melvin Davidson <melvin6925@gmail.com>
2018-02-14 14:47 ` Re: Upgrading from Postgresql 9.1 to 10 David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 2 replies; 9+ messages in thread
From: pavan95 @ 2018-02-14 14:42 UTC (permalink / raw)
To: pgsql-general
Hi all,
Is it possible to upgrade an existing postgresql 9.1 production system to
latest Postgres 10.0 version?
The main requirement is to get rid of downtime. Please help me out!
Thanks in Advance.
Regards,
Pavan
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Upgrading from Postgresql 9.1 to 10
2018-02-14 14:42 Upgrading from Postgresql 9.1 to 10 pavan95 <pavan.postgresdba@gmail.com>
@ 2018-02-14 14:47 ` Melvin Davidson <melvin6925@gmail.com>
2018-02-14 14:51 ` Re: Upgrading from Postgresql 9.1 to 10 Pavan Teja <pavan.postgresdba@gmail.com>
1 sibling, 1 reply; 9+ messages in thread
From: Melvin Davidson @ 2018-02-14 14:47 UTC (permalink / raw)
To: pavan95 <pavan.postgresdba@gmail.com>; +Cc: pgsql-general
On Wed, Feb 14, 2018 at 9:42 AM, pavan95 <pavan.postgresdba@gmail.com>
wrote:
> Hi all,
>
> Is it possible to upgrade an existing postgresql 9.1 production system to
> latest Postgres 10.0 version?
>
> The main requirement is to get rid of downtime. Please help me out!
>
> Thanks in Advance.
>
> Regards,
> Pavan
>
>
>
> --
> Sent from: http://www.postgresql-archive.org/PostgreSQL-general-
> f1843780.html
>
> > Is it possible to upgrade an existing postgresql 9.1 production system
to latest Postgres 10.0 version?
This is specifically covered in the documention
8.6. Upgrading a PostgreSQL Cluster
*https://www.postgresql.org/docs/current/static/upgrading.html
<https://www.postgresql.org/docs/current/static/upgrading.html>*--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Upgrading from Postgresql 9.1 to 10
2018-02-14 14:42 Upgrading from Postgresql 9.1 to 10 pavan95 <pavan.postgresdba@gmail.com>
2018-02-14 14:47 ` Re: Upgrading from Postgresql 9.1 to 10 Melvin Davidson <melvin6925@gmail.com>
@ 2018-02-14 14:51 ` Pavan Teja <pavan.postgresdba@gmail.com>
0 siblings, 0 replies; 9+ messages in thread
From: Pavan Teja @ 2018-02-14 14:51 UTC (permalink / raw)
To: Melvin Davidson <melvin6925@gmail.com>; +Cc: pgsql-general
Thank you for your timely response 😊
On Feb 14, 2018 8:18 PM, "Melvin Davidson" <melvin6925@gmail.com> wrote:
>
>
> On Wed, Feb 14, 2018 at 9:42 AM, pavan95 <pavan.postgresdba@gmail.com>
> wrote:
>
>> Hi all,
>>
>> Is it possible to upgrade an existing postgresql 9.1 production system to
>> latest Postgres 10.0 version?
>>
>> The main requirement is to get rid of downtime. Please help me out!
>>
>> Thanks in Advance.
>>
>> Regards,
>> Pavan
>>
>>
>>
>> --
>> Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f184378
>> 0.html
>>
>> > Is it possible to upgrade an existing postgresql 9.1 production system
> to latest Postgres 10.0 version?
> This is specifically covered in the documention
>
> 8.6. Upgrading a PostgreSQL Cluster
>
> *https://www.postgresql.org/docs/current/static/upgrading.html
> <https://www.postgresql.org/docs/current/static/upgrading.html>*--
> *Melvin Davidson*
> I reserve the right to fantasize. Whether or not you
> wish to share my fantasy is entirely up to you.
>
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Upgrading from Postgresql 9.1 to 10
2018-02-14 14:42 Upgrading from Postgresql 9.1 to 10 pavan95 <pavan.postgresdba@gmail.com>
@ 2018-02-14 14:47 ` David G. Johnston <david.g.johnston@gmail.com>
2018-02-14 15:04 ` Re: Upgrading from Postgresql 9.1 to 10 David G. Johnston <david.g.johnston@gmail.com>
2018-02-15 07:58 ` Re: Upgrading from Postgresql 9.1 to 10 Michael Paquier <michael@paquier.xyz>
1 sibling, 2 replies; 9+ messages in thread
From: David G. Johnston @ 2018-02-14 14:47 UTC (permalink / raw)
To: pavan95 <pavan.postgresdba@gmail.com>; +Cc: pgsql-general
On Wednesday, February 14, 2018, pavan95 <pavan.postgresdba@gmail.com>
wrote:
> Hi all,
>
> Is it possible to upgrade an existing postgresql 9.1 production system to
> latest Postgres 10.0 version?
>
> The main requirement is to get rid of downtime. Please help me out!
>
Zero downtime is only possible by standing up a hot-standby then failing
over to it. Same-server upgrade you can do via pg_upgrade but it does
involve downtime. There are lots of material and options online, including
the docs, for setting up hot-standby replication.
David. J.
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Upgrading from Postgresql 9.1 to 10
2018-02-14 14:42 Upgrading from Postgresql 9.1 to 10 pavan95 <pavan.postgresdba@gmail.com>
2018-02-14 14:47 ` Re: Upgrading from Postgresql 9.1 to 10 David G. Johnston <david.g.johnston@gmail.com>
@ 2018-02-14 15:04 ` David G. Johnston <david.g.johnston@gmail.com>
2018-02-14 15:07 ` Re: Upgrading from Postgresql 9.1 to 10 Pavan Teja <pavan.postgresdba@gmail.com>
2018-02-14 15:08 ` Re: Upgrading from Postgresql 9.1 to 10 Melvin Davidson <melvin6925@gmail.com>
1 sibling, 2 replies; 9+ messages in thread
From: David G. Johnston @ 2018-02-14 15:04 UTC (permalink / raw)
To: pavan95 <pavan.postgresdba@gmail.com>; +Cc: pgsql-general
On Wednesday, February 14, 2018, David G. Johnston <
david.g.johnston@gmail.com> wrote:
> On Wednesday, February 14, 2018, pavan95 <pavan.postgresdba@gmail.com>
> wrote:
>
>> Hi all,
>>
>> Is it possible to upgrade an existing postgresql 9.1 production system to
>> latest Postgres 10.0 version?
>>
>> The main requirement is to get rid of downtime. Please help me out!
>>
>
> Zero downtime is only possible by standing up a hot-standby then failing
> over to it. Same-server upgrade you can do via pg_upgrade but it does
> involve downtime. There are lots of material and options online, including
> the docs, for setting up hot-standby replication.
>
>
To clarify, you need to use logical replication here since the WAL format
is not usable across versions.
pg_upgrade is your simplest option if you can handle its downtime.
David J.
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Upgrading from Postgresql 9.1 to 10
2018-02-14 14:42 Upgrading from Postgresql 9.1 to 10 pavan95 <pavan.postgresdba@gmail.com>
2018-02-14 14:47 ` Re: Upgrading from Postgresql 9.1 to 10 David G. Johnston <david.g.johnston@gmail.com>
2018-02-14 15:04 ` Re: Upgrading from Postgresql 9.1 to 10 David G. Johnston <david.g.johnston@gmail.com>
@ 2018-02-14 15:07 ` Pavan Teja <pavan.postgresdba@gmail.com>
1 sibling, 0 replies; 9+ messages in thread
From: Pavan Teja @ 2018-02-14 15:07 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-general
Yeah David,
Even I'm thinking the same
Regards,
Pavan
On Feb 14, 2018 8:34 PM, "David G. Johnston" <david.g.johnston@gmail.com>
wrote:
>
>
> On Wednesday, February 14, 2018, David G. Johnston <
> david.g.johnston@gmail.com> wrote:
>
>> On Wednesday, February 14, 2018, pavan95 <pavan.postgresdba@gmail.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> Is it possible to upgrade an existing postgresql 9.1 production system to
>>> latest Postgres 10.0 version?
>>>
>>> The main requirement is to get rid of downtime. Please help me out!
>>>
>>
>> Zero downtime is only possible by standing up a hot-standby then failing
>> over to it. Same-server upgrade you can do via pg_upgrade but it does
>> involve downtime. There are lots of material and options online, including
>> the docs, for setting up hot-standby replication.
>>
>>
> To clarify, you need to use logical replication here since the WAL format
> is not usable across versions.
>
> pg_upgrade is your simplest option if you can handle its downtime.
>
> David J.
>
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Upgrading from Postgresql 9.1 to 10
2018-02-14 14:42 Upgrading from Postgresql 9.1 to 10 pavan95 <pavan.postgresdba@gmail.com>
2018-02-14 14:47 ` Re: Upgrading from Postgresql 9.1 to 10 David G. Johnston <david.g.johnston@gmail.com>
2018-02-14 15:04 ` Re: Upgrading from Postgresql 9.1 to 10 David G. Johnston <david.g.johnston@gmail.com>
@ 2018-02-14 15:08 ` Melvin Davidson <melvin6925@gmail.com>
1 sibling, 0 replies; 9+ messages in thread
From: Melvin Davidson @ 2018-02-14 15:08 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pavan95 <pavan.postgresdba@gmail.com>; pgsql-general
On Wed, Feb 14, 2018 at 10:04 AM, David G. Johnston <
david.g.johnston@gmail.com> wrote:
>
>
> On Wednesday, February 14, 2018, David G. Johnston <
> david.g.johnston@gmail.com> wrote:
>
>> On Wednesday, February 14, 2018, pavan95 <pavan.postgresdba@gmail.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> Is it possible to upgrade an existing postgresql 9.1 production system to
>>> latest Postgres 10.0 version?
>>>
>>> The main requirement is to get rid of downtime. Please help me out!
>>>
>>
>> Zero downtime is only possible by standing up a hot-standby then failing
>> over to it. Same-server upgrade you can do via pg_upgrade but it does
>> involve downtime. There are lots of material and options online, including
>> the docs, for setting up hot-standby replication.
>>
>>
> To clarify, you need to use logical replication here since the WAL format
> is not usable across versions.
>
> pg_upgrade is your simplest option if you can handle its downtime.
>
> David J.
>
> To clarify, you need to use logical replication here since the WAL format
is not usable across versions.
Slony replication also allows upgrading between versions without downtime.
http://www.slony.info/
--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Upgrading from Postgresql 9.1 to 10
2018-02-14 14:42 Upgrading from Postgresql 9.1 to 10 pavan95 <pavan.postgresdba@gmail.com>
2018-02-14 14:47 ` Re: Upgrading from Postgresql 9.1 to 10 David G. Johnston <david.g.johnston@gmail.com>
@ 2018-02-15 07:58 ` Michael Paquier <michael@paquier.xyz>
2018-02-15 11:09 ` Re: Upgrading from Postgresql 9.1 to 10 pavan95 <pavan.postgresdba@gmail.com>
1 sibling, 1 reply; 9+ messages in thread
From: Michael Paquier @ 2018-02-15 07:58 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pavan95 <pavan.postgresdba@gmail.com>; pgsql-general
On Wed, Feb 14, 2018 at 07:47:55AM -0700, David G. Johnston wrote:
> Zero downtime is only possible by standing up a hot-standby then failing
> over to it. Same-server upgrade you can do via pg_upgrade but it does
> involve downtime. There are lots of material and options online, including
> the docs, for setting up hot-standby replication.
PostgreSQL 10 adds logical replication which is able to handle this
scenario with close to zero downtime if you use it with synchronous
replication. So with 9.1 as origin server you cannot use that. Logical
decoding facilities being added in 9.4, it could be possible to upgrade
at least from this version using 2nd Quadrant's pglogical (correct me
others here if I am incorrect!).
Now, for older versions, the usual way to do things is by using Slony
which does trigger-based replication. This can help you reach close to
no downtime, way lower than pg_upgrade for example even if you use its
--link mode. pg_upgrade --link can work very quickly as well, so if you
care about being close to zero you may want to consider it.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Upgrading from Postgresql 9.1 to 10
2018-02-14 14:42 Upgrading from Postgresql 9.1 to 10 pavan95 <pavan.postgresdba@gmail.com>
2018-02-14 14:47 ` Re: Upgrading from Postgresql 9.1 to 10 David G. Johnston <david.g.johnston@gmail.com>
2018-02-15 07:58 ` Re: Upgrading from Postgresql 9.1 to 10 Michael Paquier <michael@paquier.xyz>
@ 2018-02-15 11:09 ` pavan95 <pavan.postgresdba@gmail.com>
0 siblings, 0 replies; 9+ messages in thread
From: pavan95 @ 2018-02-15 11:09 UTC (permalink / raw)
To: pgsql-general
Thankyou Michael
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
^ permalink raw reply [nested|flat] 9+ messages in thread
end of thread, other threads:[~2018-02-15 11:09 UTC | newest]
Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-14 14:42 Upgrading from Postgresql 9.1 to 10 pavan95 <pavan.postgresdba@gmail.com>
2018-02-14 14:47 ` Melvin Davidson <melvin6925@gmail.com>
2018-02-14 14:51 ` Pavan Teja <pavan.postgresdba@gmail.com>
2018-02-14 14:47 ` David G. Johnston <david.g.johnston@gmail.com>
2018-02-14 15:04 ` David G. Johnston <david.g.johnston@gmail.com>
2018-02-14 15:07 ` Pavan Teja <pavan.postgresdba@gmail.com>
2018-02-14 15:08 ` Melvin Davidson <melvin6925@gmail.com>
2018-02-15 07:58 ` Michael Paquier <michael@paquier.xyz>
2018-02-15 11:09 ` pavan95 <pavan.postgresdba@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