Re: Enhanced error message to include hint messages for redundant options error - Mailing list pgsql-hackers

From vignesh C
Subject Re: Enhanced error message to include hint messages for redundant options error
Date
Msg-id CALDaNm1fGVWKeBuvKVX5pOUYvHzCpdnsAfO4t44k74XTcHdxig@mail.gmail.com
Whole thread Raw
In response to Re: Enhanced error message to include hint messages for redundant options error  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
List pgsql-hackers
On Mon, May 3, 2021 at 12:08 PM Bharath Rupireddy
<bharath.rupireddyforpostgres@gmail.com> wrote:
>
> On Sun, May 2, 2021 at 8:44 PM vignesh C <vignesh21@gmail.com> wrote:
> >
> > On Sat, May 1, 2021 at 9:02 PM Bharath Rupireddy
> > <bharath.rupireddyforpostgres@gmail.com> wrote:
> > >
> > > On Sat, May 1, 2021 at 7:25 PM vignesh C <vignesh21@gmail.com> wrote:
> > > > > > I'm not attaching above one line change as a patch, maybe Vignesh can
> > > > > > merge this into the main patch.
> > > >
> > > > Thanks for the comments. I have merged the change into the attached patch.
> > > > Thoughts?
> > >
> > > Thanks! v4 basically LGTM. Can we park this in the current commitfest
> > > if not done already?
> > >
> > > Upon looking at the number of places where we have the "option \"%s\"
> > > specified more than once" error, I, now strongly feel that we should
> > > use goto duplicate_error approach like in compute_common_attribute, so
> > > that we will have only one ereport(ERROR. We can change it in
> > > following files: copy.c, dbcommands.c, extension.c,
> > > compute_function_attributes, sequence.c, subscriptioncmds.c,
> > > typecmds.c, user.c, walsender.c, pgoutput.c. This will reduce the LOC
> > > greatly.
> > >
> > > Thoughts?
> >
> > I have made the changes for this, I have posted the same in the v5
> > patch posted in my earlier mail.
>
> Thanks! The v5 patch looks good to me. Let's see if all agree on the
> goto duplicate_error approach which could reduce the LOC by ~80.
>
> I don't see it in the current commitfest, can we park it there so that
> the patch will get tested on cfbot systems?

I have added an entry in commitfest:
https://commitfest.postgresql.org/33/3103/

Regards,
Vignesh



pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Toast compression method options
Next
From: Aleksander Alekseev
Date:
Subject: Re: [PATCH] Allow CustomScan nodes to signal projection support