Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-14 Thread Amit Kapila
On Tue, Jul 14, 2020 at 3:37 PM Petr Jelinek wrote: > > On 14/07/2020 11:36, Dilip Kumar wrote: > > On Tue, Jul 14, 2020 at 2:47 PM Petr Jelinek wrote: > >> > >> I am not sure if I can follow the discussion here very well, but if I > >> understand correctly I'd like to clarify two things: > >> -

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-14 Thread Petr Jelinek
On 14/07/2020 11:36, Dilip Kumar wrote: On Tue, Jul 14, 2020 at 2:47 PM Petr Jelinek wrote: Hi, On 14/07/2020 10:29, Amit Kapila wrote: On Tue, Jul 14, 2020 at 12:05 PM Dilip Kumar wrote: On Tue, Jul 14, 2020 at 11:14 AM Amit Kapila wrote: On Tue, Jul 14, 2020 at 11:00 AM Dilip Kumar

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-14 Thread Amit Kapila
On Tue, Jul 14, 2020 at 2:47 PM Petr Jelinek wrote: > > Hi, > > On 14/07/2020 10:29, Amit Kapila wrote: > > On Tue, Jul 14, 2020 at 12:05 PM Dilip Kumar wrote: > >> > >> On Tue, Jul 14, 2020 at 11:14 AM Amit Kapila > >> wrote: > >>> > >>> On Tue, Jul 14, 2020 at 11:00 AM Dilip Kumar > >>> wro

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-14 Thread Dilip Kumar
On Tue, Jul 14, 2020 at 2:47 PM Petr Jelinek wrote: > > Hi, > > On 14/07/2020 10:29, Amit Kapila wrote: > > On Tue, Jul 14, 2020 at 12:05 PM Dilip Kumar wrote: > >> > >> On Tue, Jul 14, 2020 at 11:14 AM Amit Kapila > >> wrote: > >>> > >>> On Tue, Jul 14, 2020 at 11:00 AM Dilip Kumar > >>> wro

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-14 Thread Petr Jelinek
Hi, On 14/07/2020 10:29, Amit Kapila wrote: On Tue, Jul 14, 2020 at 12:05 PM Dilip Kumar wrote: On Tue, Jul 14, 2020 at 11:14 AM Amit Kapila wrote: On Tue, Jul 14, 2020 at 11:00 AM Dilip Kumar wrote: On Thu, Jul 9, 2020 at 6:55 PM Amit Kapila wrote: On Thu, Jul 9, 2020 at 6:14 PM Pet

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-14 Thread Amit Kapila
On Tue, Jul 14, 2020 at 12:05 PM Dilip Kumar wrote: > > On Tue, Jul 14, 2020 at 11:14 AM Amit Kapila wrote: > > > > On Tue, Jul 14, 2020 at 11:00 AM Dilip Kumar wrote: > > > > > > On Thu, Jul 9, 2020 at 6:55 PM Amit Kapila > > > wrote: > > > > > > > > On Thu, Jul 9, 2020 at 6:14 PM Petr Jeline

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-13 Thread Dilip Kumar
On Tue, Jul 14, 2020 at 11:14 AM Amit Kapila wrote: > > On Tue, Jul 14, 2020 at 11:00 AM Dilip Kumar wrote: > > > > On Thu, Jul 9, 2020 at 6:55 PM Amit Kapila wrote: > > > > > > On Thu, Jul 9, 2020 at 6:14 PM Petr Jelinek wrote: > > > > > > > > > > > > If we were to support the origin forwardin

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-13 Thread Amit Kapila
On Tue, Jul 14, 2020 at 11:00 AM Dilip Kumar wrote: > > On Thu, Jul 9, 2020 at 6:55 PM Amit Kapila wrote: > > > > On Thu, Jul 9, 2020 at 6:14 PM Petr Jelinek wrote: > > > > > > > > > If we were to support the origin forwarding, then strictly speaking we > > > need everything only at commit time

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-13 Thread Dilip Kumar
On Thu, Jul 9, 2020 at 6:55 PM Amit Kapila wrote: > > On Thu, Jul 9, 2020 at 6:14 PM Petr Jelinek wrote: > > > > Hi, > > > > On 09/07/2020 14:34, Amit Kapila wrote: > > > On Thu, Jul 9, 2020 at 5:16 PM Petr Jelinek wrote: > > >> > > >> On 09/07/2020 13:10, Amit Kapila wrote: > > >>> On Thu, Feb

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-09 Thread Amit Kapila
On Thu, Jul 9, 2020 at 6:14 PM Petr Jelinek wrote: > > Hi, > > On 09/07/2020 14:34, Amit Kapila wrote: > > On Thu, Jul 9, 2020 at 5:16 PM Petr Jelinek wrote: > >> > >> On 09/07/2020 13:10, Amit Kapila wrote: > >>> On Thu, Feb 6, 2020 at 2:40 PM Amit Kapila > >>> wrote: > > During logi

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-09 Thread Petr Jelinek
Hi, On 09/07/2020 14:34, Amit Kapila wrote: On Thu, Jul 9, 2020 at 5:16 PM Petr Jelinek wrote: On 09/07/2020 13:10, Amit Kapila wrote: On Thu, Feb 6, 2020 at 2:40 PM Amit Kapila wrote: During logical decoding, we send replication_origin and replication_origin_lsn when we decode commit. I

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-09 Thread Amit Kapila
On Thu, Jul 9, 2020 at 5:16 PM Petr Jelinek wrote: > > On 09/07/2020 13:10, Amit Kapila wrote: > > On Thu, Feb 6, 2020 at 2:40 PM Amit Kapila wrote: > >> > >> During logical decoding, we send replication_origin and > >> replication_origin_lsn when we decode commit. In pgoutput_begin_txn, > >> we

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-09 Thread Petr Jelinek
On 09/07/2020 13:10, Amit Kapila wrote: On Thu, Feb 6, 2020 at 2:40 PM Amit Kapila wrote: During logical decoding, we send replication_origin and replication_origin_lsn when we decode commit. In pgoutput_begin_txn, we send values for these two but never used on the subscriber side. Though we

Re: replication_origin and replication_origin_lsn usage on subscriber

2020-07-09 Thread Amit Kapila
On Thu, Feb 6, 2020 at 2:40 PM Amit Kapila wrote: > > During logical decoding, we send replication_origin and > replication_origin_lsn when we decode commit. In pgoutput_begin_txn, > we send values for these two but never used on the subscriber side. > Though we have provided a function (logicalr

replication_origin and replication_origin_lsn usage on subscriber

2020-02-06 Thread Amit Kapila
During logical decoding, we send replication_origin and replication_origin_lsn when we decode commit. In pgoutput_begin_txn, we send values for these two but never used on the subscriber side. Though we have provided a function (logicalrep_read_origin) to read these two values but that is not used