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

From Jeff Davis
Subject Re: Improve readability by using designated initializers when possible
Date
Msg-id af20f831e422311b5eca322a3dbe678ff26380a2.camel@j-davis.com
Whole thread Raw
In response to Re: Improve readability by using designated initializers when possible  (Jelte Fennema-Nio <postgres@jeltef.nl>)
Responses Re: Improve readability by using designated initializers when possible
List pgsql-hackers
On Fri, 2024-02-23 at 01:35 +0100, Jelte Fennema-Nio wrote:
> On Thu, Feb 22, 2024, 23:46 Jeff Davis <pgsql@j-davis.com> wrote:
> >
> > Am I missing something?
>
> The main benefits it has are:

Sorry, I was unclear. I was asking a question about the reason the
ObjectClass and the object_classes[] array exist in the current code,
it wasn't a direct question about your patch.

ObjectClass is only used in a couple places, and I don't immediately
see why those places can't just use the OID of the class (like
OperatorClassRelationId).

Regards,
    Jeff Davis




pgsql-hackers by date:

Previous
From: Jelte Fennema-Nio
Date:
Subject: Re: Improve readability by using designated initializers when possible
Next
From: "Zhijie Hou (Fujitsu)"
Date:
Subject: RE: Synchronizing slots from primary to standby