pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Scalia <jayknowsunix@gmail.com>
To: David Morton <david.morton@eroad.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Upgrading 9.6.9 to 10.4
Date: Wed, 27 Jun 2018 15:53:20 -0400
Message-ID: <67BBE981-45B6-4CC8-BA3C-DF9210D46D8F@gmail.com> (raw)
In-Reply-To: <55998B04-BB01-45F9-B478-BCE1DA4E8E6E@eroad.com>
References: <8D4726EE-74E8-494B-9ED1-817EF2BB5E4B@gmail.com>
	<55998B04-BB01-45F9-B478-BCE1DA4E8E6E@eroad.com>

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.morton@eroad.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@gmail.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
> 
> 




view thread (7+ messages)  latest in thread

Message-ID: <67BBE981-45B6-4CC8-BA3C-DF9210D46D8F@gmail.com>
Permalink:  ../67BBE981-45B6-4CC8-BA3C-DF9210D46D8F@gmail.com/
Also on:    postgresql.org/message-id/67BBE981-45B6-4CC8-BA3C-DF9210D46D8F@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jayknowsunix@gmail.com, david.morton@eroad.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Upgrading 9.6.9 to 10.4
  In-Reply-To: <67BBE981-45B6-4CC8-BA3C-DF9210D46D8F@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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