Re: Binary support for pgoutput plugin
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Dave Cramer <davecramer@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>,
Petr Jelinek <petr@2ndquadrant.com>,
Tom Lane <tgl@sss.pgh.pa.us>,
Michael Paquier <michael@paquier.xyz>,
Dmitry Dolgov <9erthalion6@gmail.com>,
Thomas Munro <thomas.munro@gmail.com>,
Tomas Vondra <tomas.vondra@2ndquadrant.com>,
Petr Jelinek <petr.jelinek@2ndquadrant.com>,
Andres Freund <andres@anarazel.de>,
PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2020-07-09T08:48:06Z
Lists: pgsql-hackers
> On 7 Jul 2020, at 22:53, Dave Cramer <davecramer@gmail.com> wrote: > I have put all your requests other than the indentation as that can be dealt with by pg_indent into another patch which I reordered ahead of yours > This should make it easier to see that all of your issues have been addressed. Thanks for the update! Do note that my patch included a new file which is missing from this patchset: src/test/subscription/t/014_binary.pl This is, IMO, the most interesting test of this feature so it would be good to be included. It's a basic test and can no doubt be extended to be even more relevant, but it's a start. > I did not do the macro for updated, inserted, deleted, will give that a go tomorrow. This might not be a blocker, but personally I think it would make the code more readable. Anyone else have an opinion on this? > I added these since this will now be used outside of logical replication and getting reasonable error messages when setting up > replication is useful. I added the \" and , I think the "lack of detail" in the existing error messages is intentional to make translation easier, but I might be wrong here. Reading through the new patch, and running the tests, I'm marking this as Ready for Committer. It does need some cosmetic TLC, quite possibly just from pg_indent but I didn't validate if it will take care of everything, and comment touchups (there is still a TODO comment around wording that needs to be resolved). However, I think it's in good enough shape for consideration at this point. cheers ./daniel
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