pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Chad Trabant <chad@iris.washington.edu>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Upgrade and re-synchronization with logical replication (pglogical and PG 10)
Date: Tue, 23 Jan 2018 12:36:48 -0500
Message-ID: <e508c847-bf4e-5121-27d4-30e6d0a4bd48@2ndquadrant.com> (raw)
In-Reply-To: <10358935-0D5B-4C94-AF02-D64B1A195442@iris.washington.edu>
References: <10358935-0D5B-4C94-AF02-D64B1A195442@iris.washington.edu>

On 1/22/18 01:53, Chad Trabant wrote:
> 1) In my initial testing it seems that an upgrade via pg_upgrade does
> not migrate logical replication slots or origins
> (pg_replication_slots and pg_replication_origin).

Correct.

A better approach might be to use pglogical itself to do the upgrade.
That is, set up a new replica somewhere that is PG10, replicate into
that, and switch over.

> 2) pglogical has mechanisms to re-synchronize an entire subscription or
> selected tables.  After identifying a few tables, out of many, that are
> out of sync following the re-construction of a replication link, I have
> used this capability to re-synchronize just what was needed. Short of
> completely re-building logical replication links (clearing and copying
> all the data) does postgres 10 have any mechanisms to re-synchronize a
> subscription or a subset thereof?

Not officially, but you could perhaps achieve that by manually fiddling
with the entries in the system catalog pg_subscription_rel.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (4+ messages)  latest in thread

Message-ID: <e508c847-bf4e-5121-27d4-30e6d0a4bd48@2ndquadrant.com>
Permalink:  ../e508c847-bf4e-5121-27d4-30e6d0a4bd48@2ndquadrant.com/
Also on:    postgresql.org/message-id/e508c847-bf4e-5121-27d4-30e6d0a4bd48@2ndquadrant.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: peter.eisentraut@2ndquadrant.com, chad@iris.washington.edu, pgsql-admin@lists.postgresql.org
  Subject: Re: Upgrade and re-synchronization with logical replication (pglogical and PG 10)
  In-Reply-To: <e508c847-bf4e-5121-27d4-30e6d0a4bd48@2ndquadrant.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