Re: First draft of PG 17 release notes

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Cc: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: First draft of PG 17 release notes
Date: 2024-09-18 21:33:18
Message-ID: ZutHHvOkGioYcDo7@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Sep 17, 2024 at 10:01:28AM +0200, Jelte Fennema-Nio wrote:
> On Wed, 11 Sept 2024 at 16:10, Bruce Momjian <bruce(at)momjian(dot)us> 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 <nathan(at)postgresql(dot)org>
> 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 <bruce(at)momjian(dot)us> 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?"

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2024-09-18 21:57:51 Re: Add memory/disk usage for WindowAgg nodes in EXPLAIN
Previous Message Bruce Momjian 2024-09-18 21:29:54 Re: Detailed release notes