Re: Binary support for pgoutput plugin
Chapman Flack <chap@anastigmatix.net>
From: Chapman Flack <chap@anastigmatix.net>
To: Dave Cramer <davecramer@gmail.com>,
Andres Freund <andres.freund@enterprisedb.com>
Cc: David Fetter <david@fetter.org>,
PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2019-06-04T21:33:28Z
Lists: pgsql-hackers
On 6/4/19 4:39 PM, Dave Cramer wrote: > I haven't really thought this through completely but one place JDBC has > problems with binary is with > timestamps with timezone as we don't know which timezone to use. Is it safe > to assume everything is in UTC > since the server stores in UTC ? PL/Java, when converting to the Java 8 java.time types (because those are sane), will turn a timestamp with timezone into an OffsetDateTime with explicit offset zero (UTC), no matter what timezone may have been used when the value was input (as you've observed, there's no way to recover that). In the return direction, if given an OffsetDateTime with any nonzero offset, it will adjust the value to UTC for postgres. So, yes, say I. Regards, -Chap
Commits
-
Weaken type-OID-matching checks in array_recv and record_recv.
- 670c0a1d474b 14.0 landed
-
Fix construction of updated-columns bitmap in logical replication.
- e8de627a3e05 11.9 landed
- d5daae47db5e 14.0 landed
- 71e561bd4bc2 12.4 landed
- 39d6aec1927c 10.14 landed
- 2f1f189cf880 13.0 landed
-
Allow logical replication to transfer data in binary format.
- 9de77b545313 14.0 landed
-
Phase 2 pgindent run for v12.
- 8255c7a5eeba 12.0 cited