pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedUpgrade from PostgreSQL 9.6 to 11
6+ messages / 4 participants
[nested] [flat]
* Upgrade from PostgreSQL 9.6 to 11
@ 2019-06-10 04:36 Pawan Sharma <pawanpg0963@gmail.com>
2019-06-10 06:00 ` Re: Upgrade from PostgreSQL 9.6 to 11 Achilleas Mantzios <achill@matrix.gatewaynet.com>
2019-06-10 11:32 ` Re: Upgrade from PostgreSQL 9.6 to 11 Ron <ronljohnsonjr@gmail.com>
0 siblings, 2 replies; 6+ messages in thread
From: Pawan Sharma @ 2019-06-10 04:36 UTC (permalink / raw)
To: pgsql-general
Hello All.
What is the best way to upgrade from PostgreSQL 9.6 to PostgreSQL 11
instead of pg_upgrade.
- Less downtime.
- Approx database size are 1-3TB.
Thanks for your help..!!!
Regards,
Pawan
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Upgrade from PostgreSQL 9.6 to 11
2019-06-10 04:36 Upgrade from PostgreSQL 9.6 to 11 Pawan Sharma <pawanpg0963@gmail.com>
@ 2019-06-10 06:00 ` Achilleas Mantzios <achill@matrix.gatewaynet.com>
2019-06-10 06:36 ` Re: Upgrade from PostgreSQL 9.6 to 11 Michael Paquier <michael@paquier.xyz>
1 sibling, 1 reply; 6+ messages in thread
From: Achilleas Mantzios @ 2019-06-10 06:00 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 10/6/19 7:36 π.μ., Pawan Sharma wrote:
> Hello All.
>
>
> What is the best way to upgrade from PostgreSQL 9.6 to PostgreSQL 11 instead of pg_upgrade.
why not pg_upgrade ? If the size is near the 3TB mark as you say, pg_upgrade is the fastest IMHO.
>
> - Less downtime.
> - Approx database size are 1-3TB.
>
> Thanks for your help..!!!
>
>
> Regards,
> Pawan
--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Upgrade from PostgreSQL 9.6 to 11
2019-06-10 04:36 Upgrade from PostgreSQL 9.6 to 11 Pawan Sharma <pawanpg0963@gmail.com>
2019-06-10 06:00 ` Re: Upgrade from PostgreSQL 9.6 to 11 Achilleas Mantzios <achill@matrix.gatewaynet.com>
@ 2019-06-10 06:36 ` Michael Paquier <michael@paquier.xyz>
2019-06-10 06:52 ` Re: Upgrade from PostgreSQL 9.6 to 11 Pawan Sharma <pawanpg0963@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Michael Paquier @ 2019-06-10 06:36 UTC (permalink / raw)
To: Achilleas Mantzios <achill@matrix.gatewaynet.com>; +Cc: pgsql-general@lists.postgresql.org
On Mon, Jun 10, 2019 at 09:00:38AM +0300, Achilleas Mantzios wrote:
> On 10/6/19 7:36 π.μ., Pawan Sharma wrote:
>> What is the best way to upgrade from PostgreSQL 9.6 to PostgreSQL
>> 11 instead of pg_upgrade.
>
> why not pg_upgrade ? If the size is near the 3TB mark as you say,
> pg_upgrade is the fastest IMHO.
When it comes to upgrades, you could also look at logical
replication. Unfortunately your origin version cannot do that. Have
you looked at things like BDR or Slony? They are logical-based,
meaning a lower downtime than pg_upgrade, but they take longer.
For 3TB pg_upgrade can also be very fast if you use --link. Be wary
of having backups though, all the time.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Upgrade from PostgreSQL 9.6 to 11
2019-06-10 04:36 Upgrade from PostgreSQL 9.6 to 11 Pawan Sharma <pawanpg0963@gmail.com>
2019-06-10 06:00 ` Re: Upgrade from PostgreSQL 9.6 to 11 Achilleas Mantzios <achill@matrix.gatewaynet.com>
2019-06-10 06:36 ` Re: Upgrade from PostgreSQL 9.6 to 11 Michael Paquier <michael@paquier.xyz>
@ 2019-06-10 06:52 ` Pawan Sharma <pawanpg0963@gmail.com>
2019-06-10 07:13 ` Re: Upgrade from PostgreSQL 9.6 to 11 Achilleas Mantzios <achill@matrix.gatewaynet.com>
0 siblings, 1 reply; 6+ messages in thread
From: Pawan Sharma @ 2019-06-10 06:52 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; +Cc: Achilleas Mantzios <achill@matrix.gatewaynet.com>; pgsql-general@lists.postgresql.org
Thanks all,
Is pg_upgrade is the best method if I am doing upgrade on same server or
different server.
Same server means: source and Target on same server
Different: source and Target are different server.
On Mon, Jun 10, 2019, 12:07 PM Michael Paquier <michael@paquier.xyz> wrote:
> On Mon, Jun 10, 2019 at 09:00:38AM +0300, Achilleas Mantzios wrote:
> > On 10/6/19 7:36 π.μ., Pawan Sharma wrote:
> >> What is the best way to upgrade from PostgreSQL 9.6 to PostgreSQL
> >> 11 instead of pg_upgrade.
> >
> > why not pg_upgrade ? If the size is near the 3TB mark as you say,
> > pg_upgrade is the fastest IMHO.
>
> When it comes to upgrades, you could also look at logical
> replication. Unfortunately your origin version cannot do that. Have
> you looked at things like BDR or Slony? They are logical-based,
> meaning a lower downtime than pg_upgrade, but they take longer.
>
> For 3TB pg_upgrade can also be very fast if you use --link. Be wary
> of having backups though, all the time.
> --
> Michael
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Upgrade from PostgreSQL 9.6 to 11
2019-06-10 04:36 Upgrade from PostgreSQL 9.6 to 11 Pawan Sharma <pawanpg0963@gmail.com>
2019-06-10 06:00 ` Re: Upgrade from PostgreSQL 9.6 to 11 Achilleas Mantzios <achill@matrix.gatewaynet.com>
2019-06-10 06:36 ` Re: Upgrade from PostgreSQL 9.6 to 11 Michael Paquier <michael@paquier.xyz>
2019-06-10 06:52 ` Re: Upgrade from PostgreSQL 9.6 to 11 Pawan Sharma <pawanpg0963@gmail.com>
@ 2019-06-10 07:13 ` Achilleas Mantzios <achill@matrix.gatewaynet.com>
0 siblings, 0 replies; 6+ messages in thread
From: Achilleas Mantzios @ 2019-06-10 07:13 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 10/6/19 9:52 π.μ., Pawan Sharma wrote:
> Thanks all,
>
> Is pg_upgrade is the best method if I am doing upgrade on same server or different server.
>
> Same server means: source and Target on same server
>
> Different: source and Target are different server.
A traditional upgrade by definition is on the same server, (if we are not talking about logical replication or any other equivalent technology).
So yes pg_upgrade is what would be best, along with -k (--link) for maximum speed.
>
>
> On Mon, Jun 10, 2019, 12:07 PM Michael Paquier <michael@paquier.xyz <mailto:michael@paquier.xyz>> wrote:
>
> On Mon, Jun 10, 2019 at 09:00:38AM +0300, Achilleas Mantzios wrote:
> > On 10/6/19 7:36 π.μ., Pawan Sharma wrote:
> >> What is the best way to upgrade from PostgreSQL 9.6 to PostgreSQL
> >> 11 instead of pg_upgrade.
> >
> > why not pg_upgrade ? If the size is near the 3TB mark as you say,
> > pg_upgrade is the fastest IMHO.
>
> When it comes to upgrades, you could also look at logical
> replication. Unfortunately your origin version cannot do that. Have
> you looked at things like BDR or Slony? They are logical-based,
> meaning a lower downtime than pg_upgrade, but they take longer.
>
> For 3TB pg_upgrade can also be very fast if you use --link. Be wary
> of having backups though, all the time.
> --
> Michael
>
--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Upgrade from PostgreSQL 9.6 to 11
2019-06-10 04:36 Upgrade from PostgreSQL 9.6 to 11 Pawan Sharma <pawanpg0963@gmail.com>
@ 2019-06-10 11:32 ` Ron <ronljohnsonjr@gmail.com>
1 sibling, 0 replies; 6+ messages in thread
From: Ron @ 2019-06-10 11:32 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 6/9/19 11:36 PM, Pawan Sharma wrote:
> Hello All.
>
>
> What is the best way to upgrade from PostgreSQL 9.6 to PostgreSQL 11
> instead of pg_upgrade.
>
> - Less downtime.
> - Approx database size are 1-3TB.
If you really don't want to do pg_upgrade, then a possibility is
multi-threaded pg_dump using directory format, followed by a parallel rsync
if required, and then multi-threaded pg_restore.
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2019-06-10 11:32 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-06-10 04:36 Upgrade from PostgreSQL 9.6 to 11 Pawan Sharma <pawanpg0963@gmail.com>
2019-06-10 06:00 ` Achilleas Mantzios <achill@matrix.gatewaynet.com>
2019-06-10 06:36 ` Michael Paquier <michael@paquier.xyz>
2019-06-10 06:52 ` Pawan Sharma <pawanpg0963@gmail.com>
2019-06-10 07:13 ` Achilleas Mantzios <achill@matrix.gatewaynet.com>
2019-06-10 11:32 ` 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