Re: GUC tables - use designated initializers

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Peter Smith <smithpb2250(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: GUC tables - use designated initializers
Date: 2022-09-27 01:12:59
Message-ID: YzJOG/tRlHCtk9Fc@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Sep 27, 2022 at 09:27:48AM +1000, Peter Smith wrote:
> But why not use designated initializers to enforce what the comments
> are hoping for?

This is a C99 thing as far as I understand, adding one safety net.
Why not for these cases..

> Doing this also exposed a minor typo in the comments.
> "ERROR_HANDLING" -> "ERROR_HANDLING_OPTIONS"

Right.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2022-09-27 01:19:51 Re: [RFC] building postgres with meson - v13
Previous Message Peter Smith 2022-09-27 01:07:53 Re: GUC values - recommended way to declare the C variables?