Re: Improve readability by using designated initializers when possible - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Improve readability by using designated initializers when possible
Date
Msg-id 4b2ce19f-3e38-4b54-beea-172f9bd031c3@eisentraut.org
Whole thread Raw
In response to Re: Improve readability by using designated initializers when possible  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Improve readability by using designated initializers when possible
List pgsql-hackers
On 14.03.24 01:26, Michael Paquier wrote:
> -EventTriggerSupportsObjectClass(ObjectClass objclass)
> +EventTriggerSupportsObject(const ObjectAddress *object)
> 
> The shortcut introduced here is interesting, but it is inconsistent.
> HEAD treats OCLASS_SUBSCRIPTION as something supported by event
> triggers, but as pg_subscription is a shared catalog it would be
> discarded with your change.  Subscriptions are marked as supported in
> the event trigger table:
> https://www.postgresql.org/docs/devel/event-trigger-matrix.html

Ah, good catch.  Subscriptions are a little special there.  Here is a 
new patch that keeps the switch/case arrangement in that function.  That 
also makes it easier to keep the two EventTriggerSupports... functions 
aligned.  Also added a note about subscriptions and a reference to the 
documentation.

Attachment

pgsql-hackers by date:

Previous
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: PostgreSQL 17 Release Management Team & Feature Freeze
Next
From: vignesh C
Date:
Subject: Re: speed up a logical replica setup