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 1s5Xfy-005xbA-AZ for pgsql-hackers@arkaria.postgresql.org; Fri, 10 May 2024 21:21:10 +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 1s5Xfw-001cas-7S for pgsql-hackers@arkaria.postgresql.org; Fri, 10 May 2024 21:21:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s5Xfv-001cak-Tq for pgsql-hackers@lists.postgresql.org; Fri, 10 May 2024 21:21:08 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s5Xfr-000ORm-9m for pgsql-hackers@postgresql.org; Fri, 10 May 2024 21:21:06 +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=4O05YXMC9HSZGXU8h/wlL2gzDEp37b9OyT4Fgg0dArk=; b=emtkB FMJrhbBa0b+iqFlHzpIRVGfBVpvz05kaBHzdxfERcAtNPUBO89Aywiqluwip2UETrEho/tO8AYqY7 tnP653bKdZK7esuma2sG+VeEhH6zxJW+i7E2bjyGeHBBhGkeX9Eb5d2hEMDb4RPou+Vi368SSH6fQ 1dIx130yEbVKdLRXiGS7t5xGZoQ3hnc7ggeH2P1Y2EzcYQcCV2h6VYzThYyvdW/DURly3eNPddWh4 agCpT1GK2s8OuwtlfGJofFSbtAKiYz7P085NJ5Hj2hEVOoqOF0k2DOr/Qy2VJqTpwsj3lZPWDaf5m Zl5VjcjwsDjys/u4gXqQqzeYwk3/w==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1s5Xfp-003wvl-2y; Fri, 10 May 2024 17:21:01 -0400 Date: Fri, 10 May 2024 17:21:01 -0400 From: Bruce Momjian To: Jelte Fennema-Nio Cc: PostgreSQL-development Subject: Re: First draft of PG 17 release notes Message-ID: References: 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 Fri, May 10, 2024 at 06:50:54PM +0200, Jelte Fennema-Nio wrote: > On Thu, 9 May 2024 at 06:04, Bruce Momjian wrote: > > > > I have committed the first draft of the PG 17 release notes; you can > > see the results here: > > > > https://momjian.us/pgsql_docs/release-17.html > > Great work! > > There are two commits that I think would benefit from being listed > (but maybe they are already listed and I somehow missed them, or they > are left out on purpose for some reason): I looked at both of these. In both cases I didn't see why the user would need to know these changes were made: --------------------------------------------------------------------------- > - c4ab7da60617f020e8d75b1584d0754005d71830 commit c4ab7da6061 Author: David Rowley Date: Sun Apr 7 21:20:18 2024 +1200 Avoid needless large memcpys in libpq socket writing Until now, when calling pq_putmessage to write new data to a libpq socket, all writes are copied into a buffer and that buffer gets flushed when full to avoid having to perform small writes to the socket. There are cases where we must write large amounts of data to the socket, sometimes larger than the size of the buffer. In this case, it's wasteful to memcpy this data into the buffer and flush it out, instead, we can send it directly from the memory location that the data is already stored in. Here we adjust internal_putbytes() so that after having just flushed the buffer to the socket, if the remaining bytes to send is as big or bigger than the buffer size, we just send directly rather than needlessly copying into the PqSendBuffer buffer first. Examples of operations that write large amounts of data in one message are; outputting large tuples with SELECT or COPY TO STDOUT and pg_basebackup. Author: Melih Mutlu Reviewed-by: Heikki Linnakangas Reviewed-by: Jelte Fennema-Nio Reviewed-by: David Rowley Reviewed-by: Ranier Vilela Reviewed-by: Andres Freund Discussion: https://postgr.es/m/CAGPVpCR15nosj0f6xe-c2h477zFR88q12e6WjEoEZc8ZYkTh3Q@mail.gmail.com > - cafe1056558fe07cdc52b95205588fcd80870362 commit cafe1056558 Author: Robert Haas Date: Tue Apr 2 10:26:10 2024 -0400 Allow SIGINT to cancel psql database reconnections. After installing the SIGINT handler in psql, SIGINT can no longer cancel database reconnections. For instance, if the user starts a reconnection and then needs to do some form of interaction (ie psql is polling), there is no way to cancel the reconnection process currently. Use PQconnectStartParams() in order to insert a cancel_pressed check into the polling loop. Tristan Partin, reviewed by Gurjeet Singh, Heikki Linnakangas, Jelte Fennema-Nio, and me. Discussion: http://postgr.es/m/D08WWCPVHKHN.3QELIKZJ2D9RZ@neon.tech -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.