pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15304: Problem when replicating Floating point timestamps to int64 timestamps
3+ messages / 3 participants
[nested] [flat]
* BUG #15304: Problem when replicating Floating point timestamps to int64 timestamps
@ 2018-07-27 17:31 PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 3+ messages in thread
From: PG Bug reporting form @ 2018-07-27 17:31 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: v.ventirozos@gmail.com
The following bug has been logged on the website:
Bug reference: 15304
Logged by: Vasilis Ventirozos
Email address: v.ventirozos@gmail.com
PostgreSQL version: 9.6.3
Operating system: ubuntu xenial
Description:
Hey all,
While testing a migration procedure on a database (v9.6.9) from floating
point datetimes to int64 (v9.6.9) using pglogical i saw that after the
initial data sync all the subsequent replicated rows containing dates are
getting nonsensical datetime values in the subscriber.
I've read:
https://www.postgresql.org/message-id/flat/26788.1487455319%40sss.pgh.pa.us#26788.1487455319@sss.pgh...
So I know that this is not something new, but i was wondering if there is
any way around this, other than just use slony (that works fine). For
example if there was a pattern, i could possibly translate the "wrong" dates
on the subscriber using a trigger. An interesting observation is that date
'2000-01-01 00:00:00' was actually transferred fine, while '1999-01-01
00:00:00' made the sync worker to error out with "date out of range".
Some examples bellow :
id | mydate | should_be |
----+------------------------------+-------------------------------+
72 | 2018-01-01 00:00:00 | Initial row before replication |
73 | 2000-01-01 00:00:00 | 2000-01-01 00:00:00 |
74 | 151547-03-14 20:46:33.353216 | 2001-01-01 00:00:00 |
75 | 151689-07-17 15:26:49.024512 | 2002-01-01 00:00:00 |
76 | 151765-01-03 19:04:55.441408 | 2003-01-01 00:00:00 |
77 | 151832-01-28 12:43:50.545408 | 2004-01-01 00:00:00 |
78 | 151874-03-11 10:09:15.259904 | 2005-01-01 00:00:00 |
79 | 151907-09-22 18:58:42.811904 | 2006-01-01 00:00:00 |
Best Regards,
Vasilis Ventirozos
OmniTI Computer Consulting Inc.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #15304: Problem when replicating Floating point timestamps to int64 timestamps
@ 2018-07-27 17:40 Alvaro Herrera <alvherre@2ndquadrant.com>
parent: PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 3+ messages in thread
From: Alvaro Herrera @ 2018-07-27 17:40 UTC (permalink / raw)
To: v.ventirozos@gmail.com; pgsql-bugs@lists.postgresql.org
On 2018-Jul-27, PG Bug reporting form wrote:
> While testing a migration procedure on a database (v9.6.9) from floating
> point datetimes to int64 (v9.6.9) using pglogical i saw that after the
> initial data sync all the subsequent replicated rows containing dates are
> getting nonsensical datetime values in the subscriber.
> I've read:
> https://www.postgresql.org/message-id/flat/26788.1487455319%40sss.pgh.pa.us#26788.1487455319@sss.pgh...
> So I know that this is not something new, but i was wondering if there is
> any way around this,
As I recall, pglogical has a way to indicate transmission of data using
the text representation rather than binary, which should fix this
problem.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #15304: Problem when replicating Floating point timestamps to int64 timestamps
@ 2018-07-27 21:38 Vasilis Ventirozos <v.ventirozos@gmail.com>
parent: Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 0 replies; 3+ messages in thread
From: Vasilis Ventirozos @ 2018-07-27 21:38 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org
> On 27 Jul 2018, at 20:40, Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
>
> On 2018-Jul-27, PG Bug reporting form wrote:
>
>> While testing a migration procedure on a database (v9.6.9) from floating
>> point datetimes to int64 (v9.6.9) using pglogical i saw that after the
>> initial data sync all the subsequent replicated rows containing dates are
>> getting nonsensical datetime values in the subscriber.
>> I've read:
>> https://www.postgresql.org/message-id/flat/26788.1487455319%40sss.pgh.pa.us#26788.1487455319@sss.pgh...
>> So I know that this is not something new, but i was wondering if there is
>> any way around this,
>
> As I recall, pglogical has a way to indicate transmission of data using
> the text representation rather than binary, which should fix this
> problem.
>
> --
> Álvaro Herrera https://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
That worked.
Thanks !
Vasilis Ventirozos
OmniTI Computer Consulting Inc.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-07-27 21:38 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-27 17:31 BUG #15304: Problem when replicating Floating point timestamps to int64 timestamps PG Bug reporting form <noreply@postgresql.org>
2018-07-27 17:40 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2018-07-27 21:38 ` Vasilis Ventirozos <v.ventirozos@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox