Re: How to find local logical replication origin?

Поиск
Список
Период
Сортировка
От Petr Jelinek
Тема Re: How to find local logical replication origin?
Дата
Msg-id e06acdd8-0c34-16c8-41ff-ec9b4a49115d@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: How to find local logical replication origin?  (Jinhua Luo <luajit.io@gmail.com>)
Список pgsql-hackers
Hi,

On 10/09/18 05:30, Jinhua Luo wrote:
> 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?

This is correct, unless explicitly set, it will be InvalidRepOriginId.

> Jinhua Luo <luajit.io@gmail.com> 于2018年9月9日周日 下午10:16写道:
>>
>> Could I assume all local originated changes is with InvalidRepOriginId?
>> Jinhua Luo <luajit.io@gmail.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?
> 

-- 
  Petr Jelinek                  http://www.2ndQuadrant.com/
  PostgreSQL Development, 24x7 Support, Training & Services


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Can I just reload the slave to change primary_conninfo?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: cache lookup failed for constraint when alter table referred bypartition table