pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedmigration from 9.4 to 9.6
6+ messages / 4 participants
[nested] [flat]
* migration from 9.4 to 9.6
@ 2019-12-06 21:19 Julie Nishimura <juliezain@hotmail.com>
2019-12-06 21:32 ` Re: migration from 9.4 to 9.6 Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 6+ messages in thread
From: Julie Nishimura @ 2019-12-06 21:19 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>; pgsql-general
Hello there, what would be my best way to migrate 2 tb single database from cluster 9.4 to another machine on 9.6?
Thank you!
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: migration from 9.4 to 9.6
2019-12-06 21:19 migration from 9.4 to 9.6 Julie Nishimura <juliezain@hotmail.com>
@ 2019-12-06 21:32 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-12-06 21:38 ` Re: migration from 9.4 to 9.6 Julie Nishimura <juliezain@hotmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Adrian Klaver @ 2019-12-06 21:32 UTC (permalink / raw)
To: Julie Nishimura <juliezain@hotmail.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>; pgsql-general
On 12/6/19 1:19 PM, Julie Nishimura wrote:
> Hello there, what would be my best way to migrate 2 tb single database
> from cluster 9.4 to another machine on 9.6?
Not clear if you want to add database to an existing 9.6 cluster or
create a new 9.6 cluster containing the 9.4 database?
>
> Thank you!
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: migration from 9.4 to 9.6
2019-12-06 21:19 migration from 9.4 to 9.6 Julie Nishimura <juliezain@hotmail.com>
2019-12-06 21:32 ` Re: migration from 9.4 to 9.6 Adrian Klaver <adrian.klaver@aklaver.com>
@ 2019-12-06 21:38 ` Julie Nishimura <juliezain@hotmail.com>
2019-12-06 22:02 ` Re: migration from 9.4 to 9.6 Adrian Klaver <adrian.klaver@aklaver.com>
2019-12-06 22:07 ` Re: migration from 9.4 to 9.6 Alan Hodgson <ahodgson@lists.simkin.ca>
0 siblings, 2 replies; 6+ messages in thread
From: Julie Nishimura @ 2019-12-06 21:38 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>; pgsql-general
I'd like to copy one single database from 9.4 cluster to a new 9.6 cluster (migration with the upgrade), to the different host
________________________________
From: Adrian Klaver <adrian.klaver@aklaver.com>
Sent: Friday, December 6, 2019 1:32 PM
To: Julie Nishimura <juliezain@hotmail.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>; pgsql-general <pgsql-general@postgresql.org>
Subject: Re: migration from 9.4 to 9.6
On 12/6/19 1:19 PM, Julie Nishimura wrote:
> Hello there, what would be my best way to migrate 2 tb single database
> from cluster 9.4 to another machine on 9.6?
Not clear if you want to add database to an existing 9.6 cluster or
create a new 9.6 cluster containing the 9.4 database?
>
> Thank you!
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: migration from 9.4 to 9.6
2019-12-06 21:19 migration from 9.4 to 9.6 Julie Nishimura <juliezain@hotmail.com>
2019-12-06 21:32 ` Re: migration from 9.4 to 9.6 Adrian Klaver <adrian.klaver@aklaver.com>
2019-12-06 21:38 ` Re: migration from 9.4 to 9.6 Julie Nishimura <juliezain@hotmail.com>
@ 2019-12-06 22:02 ` Adrian Klaver <adrian.klaver@aklaver.com>
1 sibling, 0 replies; 6+ messages in thread
From: Adrian Klaver @ 2019-12-06 22:02 UTC (permalink / raw)
To: Julie Nishimura <juliezain@hotmail.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>; pgsql-general
On 12/6/19 1:38 PM, Julie Nishimura wrote:
> I'd like to copy one single database from 9.4 cluster to a new 9.6
> cluster (migration with the upgrade), to the different host
Choices:
1) Dump/restore.
2) Afore mentioned Slony.
3) The pglogical
extension(https://www.2ndquadrant.com/en/resources/pglogical/pglogical-docs/).
The forerunner to the built in logical replication in 10+.
>
>
> ------------------------------------------------------------------------
> *From:* Adrian Klaver <adrian.klaver@aklaver.com>
> *Sent:* Friday, December 6, 2019 1:32 PM
> *To:* Julie Nishimura <juliezain@hotmail.com>;
> pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>;
> pgsql-general <pgsql-general@postgresql.org>
> *Subject:* Re: migration from 9.4 to 9.6
> On 12/6/19 1:19 PM, Julie Nishimura wrote:
>> Hello there, what would be my best way to migrate 2 tb single database
>> from cluster 9.4 to another machine on 9.6?
>
> Not clear if you want to add database to an existing 9.6 cluster or
> create a new 9.6 cluster containing the 9.4 database?
>
>>
>> Thank you!
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: migration from 9.4 to 9.6
2019-12-06 21:19 migration from 9.4 to 9.6 Julie Nishimura <juliezain@hotmail.com>
2019-12-06 21:32 ` Re: migration from 9.4 to 9.6 Adrian Klaver <adrian.klaver@aklaver.com>
2019-12-06 21:38 ` Re: migration from 9.4 to 9.6 Julie Nishimura <juliezain@hotmail.com>
@ 2019-12-06 22:07 ` Alan Hodgson <ahodgson@lists.simkin.ca>
2019-12-09 12:25 ` Re: migration from 9.4 to 9.6 Ekaterina Amez <ekaterina.amez@zunibal.com>
1 sibling, 1 reply; 6+ messages in thread
From: Alan Hodgson @ 2019-12-06 22:07 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On Fri, 2019-12-06 at 21:38 +0000, Julie Nishimura wrote:
> I'd like to copy one single database from 9.4 cluster to a new 9.6
> cluster (migration with the upgrade), to the different host
>
>
>
>
>
>
>
>
>
>
Put 9.4 on the new server. Replicate the db to it. When you're ready to
switch, shut down the master, promote the new db, and then shut it down
and pg_upgrade -k it to 9.6.
That does require the binaries from both versions to be on the new
server for a while, but it'll give you the least downtime and it's a
very simple replication setup.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: migration from 9.4 to 9.6
2019-12-06 21:19 migration from 9.4 to 9.6 Julie Nishimura <juliezain@hotmail.com>
2019-12-06 21:32 ` Re: migration from 9.4 to 9.6 Adrian Klaver <adrian.klaver@aklaver.com>
2019-12-06 21:38 ` Re: migration from 9.4 to 9.6 Julie Nishimura <juliezain@hotmail.com>
2019-12-06 22:07 ` Re: migration from 9.4 to 9.6 Alan Hodgson <ahodgson@lists.simkin.ca>
@ 2019-12-09 12:25 ` Ekaterina Amez <ekaterina.amez@zunibal.com>
0 siblings, 0 replies; 6+ messages in thread
From: Ekaterina Amez @ 2019-12-09 12:25 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
El 6/12/19 a las 23:07, Alan Hodgson escribió:
> On Fri, 2019-12-06 at 21:38 +0000, Julie Nishimura wrote:
>> I'd like to copy one single database from 9.4 cluster to a new 9.6
>> cluster (migration with the upgrade), to the different host
>>
>
> Put 9.4 on the new server. Replicate the db to it. When you're ready
> to switch, shut down the master, promote the new db, and then shut it
> down and pg_upgrade -k it to 9.6.
>
> That does require the binaries from both versions to be on the new
> server for a while, but it'll give you the least downtime and it's a
> very simple replication setup.
This is the plan we're going to follow to migrate from 9.2 to 9.6, as
this is the only way to achieve almost zero downtime. The cons are,
despite what Alan has mentioned, that you need double space because you
have to create a slave replica.
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2019-12-09 12:25 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-12-06 21:19 migration from 9.4 to 9.6 Julie Nishimura <juliezain@hotmail.com>
2019-12-06 21:32 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-12-06 21:38 ` Julie Nishimura <juliezain@hotmail.com>
2019-12-06 22:02 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-12-06 22:07 ` Alan Hodgson <ahodgson@lists.simkin.ca>
2019-12-09 12:25 ` Ekaterina Amez <ekaterina.amez@zunibal.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