Re: Refactor "mutually exclusive options" error reporting code in parse_subscription_options
Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
From: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
To: Peter Smith <smithpb2250@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>,
Amit Kapila <amit.kapila16@gmail.com>, Amul Sul <sulamul@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-06-04T11:33:03Z
Lists: pgsql-hackers
On Wed, Jun 2, 2021 at 6:11 PM Bharath Rupireddy < bharath.rupireddyforpostgres@gmail.com> wrote: > > On Wed, Jun 2, 2021 at 11:43 AM Peter Smith <smithpb2250@gmail.com> wrote: > > Yes, it looks better, but (since the masks are all 1 bit) I was only > > asking why not do like: > > > > if (supported_opts & SUBOPT_CONNECT) > > if (supported_opts & SUBOPT_ENABLED) > > if (supported_opts & SUBOPT_SLOT_NAME) > > if (supported_opts & SUBOPT_COPY_DATA) > > Please review the attached v3 patch further. Added it to the commitfeset - https://commitfest.postgresql.org/33/3151/ With Regards, Bharath Rupireddy.
Commits
-
Refactor function parse_subscription_options.
- 8aafb0261675 15.0 landed
-
Refactor function parse_output_parameters.
- 531737ddad21 14.0 cited
-
Refactor option handling of CLUSTER, REINDEX and VACUUM
- a3dc926009be 14.0 cited
-
Add assertion to quiet Coverity
- b1ff33fd9bb8 10.0 cited