pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Cory Nemelka <cnemelka@gmail.com>
To: Lev Kokotov <lev.kokotov@gmail.com>
Cc: Miles Elam <miles.elam@productops.com>
Cc: PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: DDL support for logical replication
Date: Thu, 10 Oct 2019 14:55:36 -0600
Message-ID: <CAMe5Gn0STe_eZ8Ki-AMdGGojF9B6dUsgRbf7+dEf9i_Sabh_DQ@mail.gmail.com> (raw)
In-Reply-To: <CAPwLVyJgzDWt3kqb84=1-4mZ9XFNvS0Yq2fzKBi2nZSSkujbeA@mail.gmail.com>
References: <CAPwLVy+RiZqCddqUO58U7t=XWkDnhG=XM6sVcT6dS-c7H=a7Xw@mail.gmail.com>
	<CAALojA_eLfiCkVCesr1gnBbWsGLqNVe9kLD1Y1uxHGONw=PLfw@mail.gmail.com>
	<CAPwLVyJgzDWt3kqb84=1-4mZ9XFNvS0Yq2fzKBi2nZSSkujbeA@mail.gmail.com>

Another use case is installations where there is heavy reliance on
temporary tables in queries.  Since you can't run queries that create
temporary tables on servers that are binary replicas, this leaves the
master (not horizontally scalable) or  logical replicas

--cnemelka


On Thu, Oct 10, 2019 at 2:09 PM Lev Kokotov <lev.kokotov@gmail.com> wrote:

> Hi Miles,
>
> One issue is keeping the subscriber and the publisher schema identical.
> Running migrations on both the publisher and subscriber does not seem
> atomic to me, therefore I don't have a way to enforce consistency between
> the two. The use case is simple: schemas change all the time, and keeping
> two databases (or more!) in sync manually is tough.
>
> Another issue is migrating large databases (in the terabytes) to a new
> version of Postgres with minimal downtime. Say it takes a week or two to
> sync up the subscriber with the publisher, we have to enforce a migration
> freeze for that duration. That's often inconvenient.
>
> We often want to have a database with a subset of data of a particular
> table somewhere else, and logical replication is great, since it allows me
> to run write operations on the subscriber. Binary replication forces me to
> have two identical databases.
>
> Best,
> Lev
>
> On Thu, Oct 10, 2019 at 12:49 PM Miles Elam <miles.elam@productops.com>
> wrote:
>
>> Hi Lev,
>>
>> While I don't have an answer to your roadmap question, you've raised a
>> different question for me.
>>
>> What are you expecting to get from logical replication of DDL commands
>> that is not served by binary replication?  I ask because typically someone
>> would want to use logical replication if they wanted triggers to fire on
>> the subscriber, they only a subset of all tables replicated, etc.
>>
>> Perhaps a better question would be "What problem are you trying to
>> solve?" rather than focus on how you expected to solve that problem.
>>
>>
>> Cheers,
>>
>> Miles Elam
>>
>> On Thu, Oct 10, 2019 at 11:08 AM Lev Kokotov <lev.kokotov@gmail.com>
>> wrote:
>>
>>> Hello,
>>>
>>> Is DDL support on a roadmap for logical replication?
>>>
>>> Thank you.
>>> - Lev
>>>
>>

view thread (5+ messages)  latest in thread

Message-ID: <CAMe5Gn0STe_eZ8Ki-AMdGGojF9B6dUsgRbf7+dEf9i_Sabh_DQ@mail.gmail.com>
Permalink:  ../CAMe5Gn0STe_eZ8Ki-AMdGGojF9B6dUsgRbf7+dEf9i_Sabh_DQ@mail.gmail.com/
Also on:    postgresql.org/message-id/CAMe5Gn0STe_eZ8Ki-AMdGGojF9B6dUsgRbf7+dEf9i_Sabh_DQ@mail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: cnemelka@gmail.com, lev.kokotov@gmail.com, miles.elam@productops.com
  Subject: Re: DDL support for logical replication
  In-Reply-To: <CAMe5Gn0STe_eZ8Ki-AMdGGojF9B6dUsgRbf7+dEf9i_Sabh_DQ@mail.gmail.com>
  References: <CAPwLVy+RiZqCddqUO58U7t=XWkDnhG=XM6sVcT6dS-c7H=a7Xw@mail.gmail.com> <CAALojA_eLfiCkVCesr1gnBbWsGLqNVe9kLD1Y1uxHGONw=PLfw@mail.gmail.com> <CAPwLVyJgzDWt3kqb84=1-4mZ9XFNvS0Yq2fzKBi2nZSSkujbeA@mail.gmail.com> <CAMe5Gn0STe_eZ8Ki-AMdGGojF9B6dUsgRbf7+dEf9i_Sabh_DQ@mail.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