Re: Upgrading 9.6.9 to 10.4

From: John Scalia <jayknowsunix(at)gmail(dot)com>
To: David Morton <david(dot)morton(at)eroad(dot)com>
Cc: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Upgrading 9.6.9 to 10.4
Date: 2018-06-27 19:53:20
Message-ID: 67BBE981-45B6-4CC8-BA3C-DF9210D46D8F@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ok, I figured out why the Makefile is broken for pglogical for PostgreSQL V.10. The pg_config utility returned 10.4 for the line setting Makefile parameter PGVER. Adding a simple “| cut -c1-2 to that line allows the Makefile to run for 9.6 and 10.4, probably other versions as well.

There are compile problems, however, in several source files. I don’t have the code in front of me, but one doing heap work calls replorigin_drop with a single argument, but that changed in V10 to need 2 args. Fairly easy to fix that one.

Another source calls ExecARUpdateTriggers, and its friends Insert and Delete, those signatures have changed as well, and I haven’t yet figured out how to alter pglogical for compiling these.

If anyone reading here is from 2nd Quadrant,I’m curious if this is actually being maintained. I did post these as an issue on github.

Jay

Sent from my iPad

> On Jun 26, 2018, at 6:47 PM, David Morton <david(dot)morton(at)eroad(dot)com> wrote:
>
> Take a look at pglogical ... we've used it for 9.4 -> 9.6 and the same theories apply going to 10.x I imagine. People have used it in combination with pgbouncer to achieve near outage-less upgrades. Some helpful links below:
> https://blog.2ndquadrant.com/pglogical-logical-replication-postgresql-10/
> https://blog.2ndquadrant.com/near-zero-downtime-automated-upgrades-postgresql-clusters-cloud/
> https://blog.2ndquadrant.com/near-zero-downtime-automated-upgrades-postgresql-clusters-cloud-part-ii/
>
>
> On 27/06/18, 10:38 AM, "John Scalia" <jayknowsunix(at)gmail(dot)com> wrote:
>
> Hi all,
>
> My employer is in the process of upgrading PostgreSQL, and they would like me to make this happen without any real interruption of service. As I understand it, 9.6 does not support the publish/subscribe model like 10.4 does, but logical replication is the basis of that model. So, does anyone have any suggestions for how to implement the receiver side on a 10.4 server? Or could you at least point me to some sort of how-to page?
>
> TIA,
> Jay
>
>
> Sent from my iPad
>
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ganesh Korde 2018-06-28 10:08:38 Re: Streaming replication connection break - unexpected EOF on standby connection
Previous Message Jerry Sievers 2018-06-27 15:41:02 Re: Investigate postgres 9.6.3 repmgr lag 4.0.4