public inbox for [email protected]  
help / color / mirror / Atom feed
From: Bruce Momjian <[email protected]>
To: Jelte Fennema-Nio <[email protected]>
Cc: Alvaro Herrera <[email protected]>
Cc: Nathan Bossart <[email protected]>
Cc: [email protected]
Subject: Re: First draft of PG 17 release notes
Date: Wed, 18 Sep 2024 17:33:18 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAGECzQQ-ec-=HKRaD3y7b_Z5Vo4HxztAknG04RVG3HLwJvsguw@mail.gmail.com>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<CAGECzQQfRVehQON65qNu-T_1O7VE+aFi0uPgvSEG4PHaijbUiw@mail.gmail.com>
	<[email protected]>
	<CAGECzQQ-ec-=HKRaD3y7b_Z5Vo4HxztAknG04RVG3HLwJvsguw@mail.gmail.com>

On Tue, Sep 17, 2024 at 10:01:28AM +0200, Jelte Fennema-Nio wrote:
> On Wed, 11 Sept 2024 at 16:10, Bruce Momjian <[email protected]> wrote:
> > You are right that I do mention changes specifically designed for the
> > use of extensions, but there is no mention in the commit message of its
> > use for extensions.  In fact, I thought this was too low-level to be of
> > use for extensions.  However, if people feel it should be added, we have
> > enough time to add it.
> 
> Another new API that is useful for extension authors is the following
> one (I'm obviously biased since I'm the author, and I don't know if
> there's still time):
> 
> commit 14dd0f27d7cd56ffae9ecdbe324965073d01a9ff
> Author: Nathan Bossart <[email protected]>
> Date:   Thu Jan 4 16:09:34 2024 -0600
> 
>     Add macros for looping through a List without a ListCell.
> 
>     Many foreach loops only use the ListCell pointer to retrieve the
>     content of the cell, like so:
> 
>         ListCell   *lc;
> 
>         foreach(lc, mylist)
>         {
>             int         myint = lfirst_int(lc);
> 
>             ...
>         }
> 
>     This commit adds a few convenience macros that automatically
>     declare the loop variable and retrieve the current cell's contents.
>     This allows us to rewrite the previous loop like this:
> 
>         foreach_int(myint, mylist)
>         {
>             ...
>         }

Can someone else comment on the idea of adding this release note item? 
I don't feel confident in my ability to evaluate this.  I obviously did
not see it as significant the first time.

-- 
  Bruce Momjian  <[email protected]>        https://momjian.us
  EDB                                      https://enterprisedb.com

  When a patient asks the doctor, "Am I going to die?", he means 
  "Am I going to die soon?"






view thread (17+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: First draft of PG 17 release notes
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox