RE: Distinguish publication exclusions in object addresses - Mailing list pgsql-hackers

From Zhijie Hou (Fujitsu)
Subject RE: Distinguish publication exclusions in object addresses
Date
Msg-id TY4PR01MB17718ECD62213EF5425DFB5C894B92@TY4PR01MB17718.jpnprd01.prod.outlook.com
Whole thread
In response to Re: Distinguish publication exclusions in object addresses  (Peter Smith <smithpb2250@gmail.com>)
List pgsql-hackers
On Wednesday, September 16, 2026 12:51 PM Peter Smith <smithpb2250@gmail.com> wrote:
> Some review comments for v3:
> 
> 
> ======
> src/backend/catalog/aclchk.c
> 
> + case OBJECT_PUBLICATION_EXCLUDED_REL:
>   case OBJECT_PUBLICATION_NAMESPACE:
>   case OBJECT_PUBLICATION_REL:
> 
> The new enum name OBJECT_PUBLICATION_EXCLUDED_REL is closely
> related to OBJECT_PUBLICATION_REL.
> 
> IMO, a better name would be OBJECT_PUBLICATION_REL_EXCLUDED, so
> these related things are kept adjacent alphabetically and in the code.

I think all object type names end with a noun, whereas the proposed name
doesn't, so I don't find it better. Also, the order of an enum value doesn't
provide enough value to justify the change, in my view.

Best Regards,
Zhijie Hou

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Distinguish publication exclusions in object addresses
Next
From: Chao Li
Date:
Subject: Re: [PATCH] Release replication slot on error in SQL-callable slot functions