Re: Support logical replication of DDLs

From: vignesh C <vignesh21(at)gmail(dot)com>
To: shveta malik <shveta(dot)malik(at)gmail(dot)com>
Cc: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com>, Ajin Cherian <itsajin(at)gmail(dot)com>, "Wei Wang (Fujitsu)" <wangw(dot)fnst(at)fujitsu(dot)com>, Runqi Tian <runqidev(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, li jie <ggysxcq(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Japin Li <japinli(at)hotmail(dot)com>, rajesh singarapu <rajesh(dot)rs0541(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Zheng Li <zhengli10(at)gmail(dot)com>
Subject: Re: Support logical replication of DDLs
Date: 2023-05-17 11:15:24
Message-ID: CALDaNm3zSxK1g0UTo4RjPR3JEc-vyPzANOnKEKjiW88xtUUdzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Wed, 17 May 2023 at 15:41, shveta malik <shveta(dot)malik(at)gmail(dot)com> wrote:
>
> On Fri, May 12, 2023 at 12:03 PM shveta malik <shveta(dot)malik(at)gmail(dot)com> wrote:
> >
> > On Tue, May 9, 2023 at 4:23 PM shveta malik <shveta(dot)malik(at)gmail(dot)com> wrote:
> > >
> > > On Mon, May 8, 2023 at 4:31 PM shveta malik <shveta(dot)malik(at)gmail(dot)com> wrote:
> > > >
> > > > On Mon, May 8, 2023 at 3:58 PM shveta malik <shveta(dot)malik(at)gmail(dot)com> wrote:
> > > > >
> > > > > On Tue, May 2, 2023 at 8:30 AM shveta malik <shveta(dot)malik(at)gmail(dot)com> wrote:
> > > > > >
> > > > > > On Fri, Apr 28, 2023 at 5:11 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
> > > > > > >
> > > > > > > Now, I think we can try to eliminate this entire ObjTree machinery and
> > > > > > > directly from the JSON blob during deparsing. We have previously also
> > > > > > > discussed this in an email chain at [1]. I think now the functionality
> > > > > > > of JSONB has also been improved and we should investigate whether it
> > > > > > > is feasible to directly use JSONB APIs to form the required blob.
> > > > > >
> > > > > > +1.
> > > > > > I will investigate this and will share my findings.
> > > > > >
> > > > >
> > > > >
> > > > > Please find the PoC patch for create-table after object-tree removal.
> > > >
> > >
> >
> > Please find the new set of patches attached for object-tree removal.
>
> Please find the new set of patches for object-tree Removal. The new
> changes are in patch 0008 only. The new changes incorporate the
> object-tree removal for 'alter table' command.

The patch was not applying on top of HEAD because of a recent commit
"psql: Adjust capitalization of table heading", attached a rebased
version.

Regards,
Vignesh

Attachment Content-Type Size
0003-Add-verbose-option-for-ddl-deparse-module-2023_05_17b.patch text/x-patch 47.2 KB
0001-Deparser-for-Table-DDL-commands-and-extending-event-2023_05_17b.patch text/x-patch 167.5 KB
0002-Enhance-the-event-trigger-to-support-DDL-deparsing-2023_05_17b.patch text/x-patch 33.9 KB
0005-DDL-replication-for-Table-DDL-commands-2023_05_17b.patch text/x-patch 248.1 KB
0004-Introduce-the-test_ddl_deparse_regress-test-module-2023_05_17b.patch text/x-patch 977.8 KB
0007-Apply-the-DDL-change-as-that-same-user-that-executed-2023_05_17b.patch text/x-patch 60.0 KB
0006-Add-subscription-tap-test-for-DDL-replication-for-TA-2023_05_17b.patch text/x-patch 20.8 KB
0008-objTree-Removal-for-create-drop-alter-table-2023_05_17b.patch text/x-patch 1.7 MB

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jehan-Guillaume de Rorthais 2023-05-17 12:22:25 Re: Postresql HA 2 nodes
Previous Message shveta malik 2023-05-17 10:11:41 Re: Support logical replication of DDLs

Browse pgsql-hackers by date

  From Date Subject
Next Message Nikita Malakhov 2023-05-17 11:32:13 Re: [PATCH] Compression dictionaries for JSONB
Previous Message shveta malik 2023-05-17 10:11:41 Re: Support logical replication of DDLs