Re: How to find local logical replication origin?

From: Jinhua Luo <luajit(dot)io(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: How to find local logical replication origin?
Date: 2018-09-10 03:30:16
Message-ID: CAAc9rOwxZCus7eJrN0KHOD8i90LpUzRne6mOO5=mR+UKmuZ=RQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Because I found in the source codes that if not explicitly set (e.g.
via pg_replication_origin_session_setup), the
replorigin_session_origin included in the wal is InvalidRepOriginId,
correct?
Jinhua Luo <luajit(dot)io(at)gmail(dot)com> 于2018年9月9日周日 下午10:16写道:
>
> Could I assume all local originated changes is with InvalidRepOriginId?
> Jinhua Luo <luajit(dot)io(at)gmail(dot)com> 于2018年9月8日周六 下午5:41写道:
> >
> > Hi All,
> >
> > What's the local logical replication origin, which could be used to
> > filter local changes in the replication slot?
> >
> > In other words, I'm curious that what's the default replication
> > origin? Because normal DML locally does not set any origin explicitly,
> > correct?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2018-09-10 04:36:57 Re: executor relation handling
Previous Message Tom Lane 2018-09-10 03:27:12 SerializeParamList vs machines with strict alignment