Re: [Bug] Logical Replication failing if the DateStyle is different in Publisher & Subscriber
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [Bug] Logical Replication failing if the DateStyle is different in Publisher & Subscriber |
| Дата | |
| Msg-id | 1493647.1634528124@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [Bug] Logical Replication failing if the DateStyle is different in Publisher & Subscriber (Masahiko Sawada <sawada.mshk@gmail.com>) |
| Ответы |
Re: [Bug] Logical Replication failing if the DateStyle is different in Publisher & Subscriber
|
| Список | pgsql-hackers |
Masahiko Sawada <sawada.mshk@gmail.com> writes:
> On Thu, Oct 14, 2021 at 8:50 PM Dilip Kumar <dilipbalaut@gmail.com> wrote:
>> Looks like a problem to me, I think for fixing this, on logical
>> replication connection always set subscriber's DateStlyle, with that
>> the walsender will always send the data in the same DateStyle that
>> worker understands and then we are good.
> +1
An alternative that wouldn't require a network round trip is for the
publisher to set its own datestyle to ISO/YMD. I'm pretty sure that
will be interpreted correctly regardless of the receiver's datestyle.
> Probably the same is true for IntervalStyle?
Not sure if an equivalent solution applies to intervals ...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера