Re: replication_origin and replication_origin_lsn usage on subscriber - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: replication_origin and replication_origin_lsn usage on subscriber
Date
Msg-id CAA4eK1LVLnXQeYkFCS-OqnXcYT=dyTidK7S38SXCo9+JRFr1mw@mail.gmail.com
Whole thread Raw
In response to Re: replication_origin and replication_origin_lsn usage on subscriber  (Dilip Kumar <dilipbalaut@gmail.com>)
Responses Re: replication_origin and replication_origin_lsn usage on subscriber  (Dilip Kumar <dilipbalaut@gmail.com>)
List pgsql-hackers
On Tue, Jul 14, 2020 at 11:00 AM Dilip Kumar <dilipbalaut@gmail.com> wrote:
>
> On Thu, Jul 9, 2020 at 6:55 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
> >
> > On Thu, Jul 9, 2020 at 6:14 PM Petr Jelinek <petr@2ndquadrant.com> wrote:
> > >
> > >
> > > If we were to support the origin forwarding, then strictly speaking we
> > > need everything only at commit time from correctness perspective,
> > >
> >
> > Okay.  Anyway streaming mode is optional, so in such cases, we can keep it 'off'
> >
> > > but
> > > ideally origin_id would be best sent with first message as it can be
> > > used to filter out changes at decoding stage rather than while we
> > > process the commit so having it set early improves performance of decoding.
> > >
> >
> > Yeah, makes sense.  So, we will just send origin_id (with first
> > streaming start message) and leave others.
>
> So IIUC, currently we are sending the latest origin_id which is set
> during the commit time.  So in our case, while we start streaming we
> will send the origin_id of the latest change in the current stream
> right?
>

It has to be sent only once with the first start message not with
consecutive start messages.

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Improvements in Copy From
Next
From: Amit Langote
Date:
Subject: Re: [PATCH] Performance Improvement For Copy From Binary Files