Re: Binary support for pgoutput plugin

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: David Fetter <david@fetter.org>
Cc: Dave Cramer <davecramer@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2019-06-04T22:08:17Z
Lists: pgsql-hackers
Hi,

On 2019-06-05 00:05:02 +0200, David Fetter wrote:
> Would it make sense to work toward a binary format that's not
> architecture-specific? I recall from COPY that our binary format is
> not standardized across, for example, big- and little-endian machines.

I think you recall wrongly. It's obviously possible that we have bugs
around this, but output/input routines are supposed to handle a
endianess independent format. That usually means that you have to do
endianess conversions, but that doesn't make it non-standardized.

- Andres



Commits

  1. Weaken type-OID-matching checks in array_recv and record_recv.

  2. Fix construction of updated-columns bitmap in logical replication.

  3. Allow logical replication to transfer data in binary format.

  4. Phase 2 pgindent run for v12.