From: | Melih Mutlu <m(dot)melihmutlu(at)gmail(dot)com> |
---|---|
To: | Peter Smith <smithpb2250(at)gmail(dot)com> |
Cc: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, Melanie Plageman <melanieplageman(at)gmail(dot)com>, "Wei Wang (Fujitsu)" <wangw(dot)fnst(at)fujitsu(dot)com>, "Yu Shi (Fujitsu)" <shiy(dot)fnst(at)fujitsu(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, shveta malik <shveta(dot)malik(at)gmail(dot)com> |
Subject: | Re: [PATCH] Reuse Workers and Replication Slots during Logical Replication |
Date: | 2023-07-21 09:51:56 |
Message-ID: | CAGPVpCSvJ8Oiy7ysM9QttEq7gCawi1J5fBJNFszEWC7jWLOq_w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Peter Smith <smithpb2250(at)gmail(dot)com>, 21 Tem 2023 Cum, 12:48 tarihinde şunu
yazdı:
> On Fri, Jul 21, 2023 at 5:24 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
> wrote:
> >
> > On Fri, Jul 21, 2023 at 12:05 PM Peter Smith <smithpb2250(at)gmail(dot)com>
> wrote:
> > >
> > > On Fri, Jul 21, 2023 at 3:39 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
> wrote:
> > > >
>
> > > > The other thing I noticed is that we
> > > > don't seem to be consistent in naming functions in these files. For
> > > > example, shall we make all exposed functions follow camel case (like
> > > > InitializeLogRepWorker) and static functions follow _ style (like
> > > > run_apply_worker) or the other possibility is to use _ style for all
> > > > functions except may be the entry functions like ApplyWorkerMain()? I
> > > > don't know if there is already a pattern but if not then let's form
> it
> > > > now, so that code looks consistent.
> > > >
> > >
> > > +1 for using some consistent rule, but I think this may result in
> > > *many* changes, so it would be safer to itemize all the changes first,
> > > just to make sure everybody is OK with it first before updating
> > > everything.
> > >
> >
> > Fair enough. We can do that as a first patch and then work on the
> > refactoring patch to avoid introducing more inconsistencies or we can
> > do the refactoring patch first but keep all the new function names to
> > follow _ style.
> >
>
> Fixing the naming inconsistency will be more far-reaching than just a
> few functions affected by these "reuse" patches. There are plenty of
> existing functions already inconsistently named in the HEAD code. So
> perhaps this topic should be moved to a separate thread?
>
+1 for moving it to a separate thread. This is not something particularly
introduced by this patch.
Thanks,
--
Melih Mutlu
Microsoft
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Guo | 2023-07-21 10:02:10 | Assert failure on bms_equal(child_joinrel->relids, child_joinrelids) |
Previous Message | Peter Smith | 2023-07-21 09:48:07 | Re: [PATCH] Reuse Workers and Replication Slots during Logical Replication |