Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sr2Ie-00F2Wr-QD for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Sep 2024 21:33:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sr2Id-00GDxZ-GH for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Sep 2024 21:33:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sr2Id-00GDwC-6K for pgsql-hackers@lists.postgresql.org; Wed, 18 Sep 2024 21:33:23 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sr2Ia-001t5K-QW for pgsql-hackers@postgresql.org; Wed, 18 Sep 2024 21:33:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2024011501; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=i672O3O18j6+B6hk9rxB3JiQNkeLsFr2gm70WVzmny8=; b=lx0k1 bk2IDAAUd81AQ67Gdh6u9VbUk/xirF59qpAohEtoKkbDmz84bmIY73KfI18idPPg5u/RMco1f3IsP 6prmbnzQD4OvFFmOTzvigtuZc0NHKtoCkEWMctPC//mLv0io/SQdI+3ppFuH2+stjPwgDQyqXGRWM GY1bk84/6e5xEBhCorEgPmKUiiU+kE8KWXXXtlHFzxA4v+kSHCuuyBkPROU58bvaW1MfldvUZl25c Bj15ogru7mnQGWiSoHVD/I7Ovv8hJQypxo8tRZ1YNsS55g0prxQ+rNvWNPYqKD/9MFdH7NDL4JdQ3 B9FmivaJd7Rzlp+t5iEfvfFDPstrw==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1sr2IY-00HMmK-0q; Wed, 18 Sep 2024 17:33:18 -0400 Date: Wed, 18 Sep 2024 17:33:18 -0400 From: Bruce Momjian To: Jelte Fennema-Nio Cc: Alvaro Herrera , Nathan Bossart , pgsql-hackers@postgresql.org Subject: Re: First draft of PG 17 release notes Message-ID: References: <202409070955.wyuhquqflbxg@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 17, 2024 at 10:01:28AM +0200, Jelte Fennema-Nio wrote: > On Wed, 11 Sept 2024 at 16:10, Bruce Momjian 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 > 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 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?"