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 1qYD44-0013sv-MH for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Aug 2023 22:08:00 +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 1qYD43-00BVjb-J3 for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Aug 2023 22:07:59 +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 1qYD43-00BVjT-8x for pgsql-hackers@lists.postgresql.org; Mon, 21 Aug 2023 22:07:59 +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 1qYD3z-000FJi-Nl; Mon, 21 Aug 2023 22:07:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description; bh=nO41lR7V2qg828/EfVeTurUM1bXuBPIUnJnT486eyyE=; b=A5iPulXOrgdRqlcyTBP29rXtTJ Sg2dzRE3VupMHIgmiUnHfD22My4GjyLvoREwnd3548drHvTs4eNPC4m5zFhoQ/qW/lHq7jdAet1iD SXBOssQkU3TVbx+dv0x6+U2EBs1lbbT8e6uyKSZHgtYmQSufotCFnFjSd0ENo5bQEKVc4ZetYGtI/ U0+IFTtflnNmJhyfqogMT/5RW9kl4U4oPS6RLPO8mEc+T7yhEnfF9x3Uwj0psk0/B8YAWHG0Eejbl iyeT0C4Lz0sYup7ii97r+2s6sgK+3TX369tyJgJV2QqJdu3jr/vPmb/4VfZokI717KaJuNyE+SjJd 3g0ASv1w==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qYD3y-00Bmzc-2G; Mon, 21 Aug 2023 18:07:54 -0400 Date: Mon, 21 Aug 2023 18:07:54 -0400 From: Bruce Momjian To: Erwin Brandstetter Cc: PostgreSQL-development , David Rowley Subject: Re: PG 16 draft release notes ready Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Aug 19, 2023 at 04:24:48AM +0200, Erwin Brandstetter wrote: > I posted to pgsql-docs first, but was kindly redirected here by Jonathan: > > The release notes for Postgres 16 says here: > https://www.postgresql.org/docs/16/release-16.html#RELEASE-16-PERFORMANCE > > Same as here: > https://momjian.us/pgsql_docs/release-16.html#RELEASE-16-PERFORMANCE > >     Allow window functions to use ROWS mode internally when RANGE mode is > specified but unnecessary (David Rowley) Yes, I didn't like "specified" myself but never returned to improve it. I am now using: Allow window functions to use the faster ROWS mode internally when RANGE mode is active but unnecessary ------ (David Rowley) Can that be improved? > But the improvement (fix to some degree) also applies to the much more common > case where no mode has been specified, RANGE unfortunately being the default. > That includes the most common use case "row_number() OVER (ORDER BY col)", > where RANGE mode should not be applied to begin with, according to SQL specs. > This is what made me investigate, test and eventually propose a fix in the > first place. See: Yes, very true. > Also, I was hoping to be mentioned in the release note for working this out: > >     Allow window functions to use the faster ROWS mode internally when RANGE > mode is specified or would be default, but unnecessary (David Rowley, Erwin > Brandstetter) Uh, I have CC'ed David Rowley because that is unclear based on the commit message. I don't normally mention reviewers. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.