Re: Binary support for pgoutput plugin
Petr Jelinek <petr.jelinek@2ndquadrant.com>
From: Petr Jelinek <petr.jelinek@2ndquadrant.com>
To: Dave Cramer <davecramer@gmail.com>,
Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>,
PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2019-06-10T11:49:47Z
Lists: pgsql-hackers
Hi, On 10/06/2019 13:27, Dave Cramer wrote: > So back to binary output. > > From what I can tell the place to specify binary options would be in the > create publication and or in replication slots? > > The challenge as I see it is that the subscriber would have to be able > to decode binary output. > > Any thoughts on how to handle this? At the moment I'm assuming that this > would only work for subscribers that knew how to handle binary. > Given that we don't need to write anything extra to WAL on upstream to support binary output, why not just have the request for binary data as an option for the pgoutput and have it chosen dynamically? Then it's the subscriber who asks for binary output via option(s) to START_REPLICATION. -- Petr Jelinek 2ndQuadrant - PostgreSQL Solutions https://www.2ndQuadrant.com/
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