Re: Allow logical replication to copy tables in binary format
Melih Mutlu <m.melihmutlu@gmail.com>
From: Melih Mutlu <m.melihmutlu@gmail.com>
To: Peter Smith <smithpb2250@gmail.com>, Amit Kapila <amit.kapila16@gmail.com>
Cc: vignesh C <vignesh21@gmail.com>, "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>,
"shiy.fnst@fujitsu.com" <shiy.fnst@fujitsu.com>, Euler Taveira <euler@eulerto.com>, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, Dilip Kumar <dilipbalaut@gmail.com>, "osumi.takamichi@fujitsu.com" <osumi.takamichi@fujitsu.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-03-21T09:32:40Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Allow logical replication to copy tables in binary format.
- ecb696527c01 16.0 landed
-
Common function for percent placeholder replacement
- c96de2ce1782 16.0 cited
-
Doc: add XML ID attributes to <sectN> and <varlistentry> tags.
- 78ee60ed84bb 16.0 cited
-
Re-order disable_on_error in tab-complete.
- d547f7cf5efc 16.0 cited
-
Make subscription tests pass with log_error_verbosity=verbose
- 19408aae7fa2 15.0 cited
-
Weaken type-OID-matching checks in array_recv and record_recv.
- 670c0a1d474b 14.0 cited
-
Allow logical replication to transfer data in binary format.
- 9de77b545313 14.0 cited
Attachments
- v19-0001-Allow-logical-replication-to-copy-table-in-binary.patch (application/x-patch) patch v19-0001
Hi, Peter Smith <smithpb2250@gmail.com>, 21 Mar 2023 Sal, 04:33 tarihinde şunu yazdı: > Here are my review comments for v18-0001 > > ====== > doc/src/sgml/logical-replication.sgml > > 1. > + target table. However, logical replication in binary format is more > + restrictive. See the <literal>binary</literal> option of > + <link linkend="sql-createsubscription-binary"><command>CREATE > SUBSCRIPTION</command></link> > + for details. > </para> > > Because you've changed the linkend to be the binary option, IMO now > the <link> part also needs to be modified. Otherwise, this page has > multiple "CREATE SUBSCRIPTION" links which jump to different places, > which just seems wrong to me. > Makes sense. I changed it as you suggested. > 3. > I think there can only be 0 or 1 list element in 'options'. > > So, why does the code here use lappend(options,...) instead of just > using list_make1(...)? > Changed it to list_make1. Amit Kapila <amit.kapila16@gmail.com>, 21 Mar 2023 Sal, 12:27 tarihinde şunu yazdı: > > Explaining the issue explicitly with a comment seems better to me than > the trick of changing order of table creation just for some test cases. > > But I'm also ok with removing the use of disable_on_error if that's what > you agree on. > > > > Let's do that way for now. > Done. Thanks, -- Melih Mutlu Microsoft