Re: [Bug] Logical Replication failing if the DateStyle is different in Publisher & Subscriber

Поиск
Список
Период
Сортировка
От Dilip Kumar
Тема Re: [Bug] Logical Replication failing if the DateStyle is different in Publisher & Subscriber
Дата
Msg-id CAFiTN-tw2HVuSEydRYZhJV0EQpfcJSG7hs8X2xYaS1eCpmC61g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [Bug] Logical Replication failing if the DateStyle is different in Publisher & Subscriber  (Japin Li <japinli@hotmail.com>)
Ответы Re: [Bug] Logical Replication failing if the DateStyle is different in Publisher & Subscriber  (Japin Li <japinli@hotmail.com>)
Список pgsql-hackers
On Mon, Oct 18, 2021 at 1:41 PM Japin Li <japinli@hotmail.com> wrote:

> I attached v3 patch that set IntervalStyle to 'postgres' when the
> server backend is walsender, and this problem has gone.

> I test that set IntervalStyle to 'sql_standard' on publisher and
> 'iso_8601' on subscriber, it works fine.

> Please try v3 patch and let me know if they work as unexpected.
> Thanks in advance.

I think the idea of setting the standard DateStyle and the
IntervalStyle on the walsender process looks fine to me.  As this will
avoid extra network round trips as Tom mentioned.

-- 
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Skipping logical replication transactions on subscriber side
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Data is copied twice when specifying both child and parent table in publication