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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Cc: Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Sadhuprasad Patro <b(dot)sadhu(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [Bug] Logical Replication failing if the DateStyle is different in Publisher & Subscriber
Date: 2021-10-18 03:41:35
Message-ID: 1493997.1634528495@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I wrote:
> 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.

Ah ... see postgres_fdw's set_transmission_modes(). I think we want
to copy that logic not invent some other way to do it.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2021-10-18 03:52:06 Re: Added schema level support for publication.
Previous Message Tom Lane 2021-10-18 03:35:24 Re: [Bug] Logical Replication failing if the DateStyle is different in Publisher & Subscriber