Re: Enhanced error message to include hint messages for redundant options error
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: Daniel Gustafsson <daniel@yesql.se>,
Alvaro Herrera <alvherre@alvh.no-ip.org>, "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Dilip Kumar <dilipbalaut@gmail.com>
Date: 2021-07-12T16:39:22Z
Lists: pgsql-hackers
Attachments
- v10-0001-Enhance-error-message-to-include-option-name-in-.patch (application/x-patch) patch v10-0001
On Sun, Jul 11, 2021 at 3:23 PM Dean Rasheed <dean.a.rasheed@gmail.com> wrote: > > On Sat, 10 Jul 2021 at 18:09, vignesh C <vignesh21@gmail.com> wrote: > > > > I'm planning to handle conflicting errors separately after this > > current work is done, once the patch is changed to have just the valid > > scenarios(removing the scenarios you have pointed out) existing > > function can work as is without any changes. Thoughts? > > Ah OK, that might be reasonable. Perhaps, then errorDuplicateDefElem() > and errorConflictingDefElem() would be better than what I originally > suggested. > > BTW, another case I spotted was this: > > copy (select 1) to stdout csv csv header; > ERROR: option "format" specified more than once > LINE 1: copy (select 1) to stdout csv csv header; > ^ > Thanks for your comments, I have made the changes for the same in the V10 patch attached. Thoughts? Regards, Vignesh
Commits
-
Improve reporting of "conflicting or redundant options" errors.
- 2bfb50b3df11 15.0 landed
-
Refactor function parse_subscription_options.
- 8aafb0261675 15.0 cited