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.96) (envelope-from ) id 1wcwMv-003lfT-2e for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jun 2026 02:32:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wcwMu-008Opg-2J for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jun 2026 02:32:36 +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.96) (envelope-from ) id 1wcwMu-008OpY-1F for pgsql-hackers@lists.postgresql.org; Fri, 26 Jun 2026 02:32:36 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wcwMr-00000000ILm-1izc for pgsql-hackers@postgresql.org; Fri, 26 Jun 2026 02:32:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Transfer-Encoding:Content-Type: Mime-Version:References:In-Reply-To:From:Subject:Cc:To:Message-Id:Date:Sender :Reply-To:Content-ID:Content-Description; bh=wzPWBxUUYV1JNl9VI7j/jBWdxkjTEvfPG57iKW6u84s=; b=DAPk5li2C0V0Ec/skO116ha0XC hXNlcJwLDuJPfZQb5nlph1AUnXOzzSfWn9jsYTx7jApbqzp49lw9hUCHI+CXrIC7a2vUBbtom2GwG UBcUayjAXCO+vabETYHL8/AJVDrrZEn1VgQVZxlpB3i39AaN3kbS05Ggm9vT6qYINh/+LbRBMx29l MzGK0TKQc3RGIsxkWCqYCcyNXNV7VBuaGcsjd8RoyYwoml5rxUSLsa7w+MT17xtAWiix0111xSyIm 8tLrpH8ufDClACls2pfqp+DYZvizDmCEnglvsjqHpkjU/n52Wb11V24viVv+fiZpuFOsBkvrfGTp/ D/KfgnvQ==; Received: from [2409:11:4120:300:bfbe:5c81:899f:2cae] (helo=localhost) by meldrar.postgresql.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wcwMp-006HTE-0W; Fri, 26 Jun 2026 02:32:33 +0000 Date: Fri, 26 Jun 2026 11:32:16 +0900 (JST) Message-Id: <20260626.113216.216176141793932743.ishii@postgresql.org> To: assam258@gmail.com Cc: jian.universality@gmail.com, pgsql-hackers@postgresql.org, zsolt.parragi@percona.com, sjjang112233@gmail.com, vik@postgresfriends.org, er@xs4all.nl, jacob.champion@enterprisedb.com, david.g.johnston@gmail.com, peter@eisentraut.org, li.evan.chao@gmail.com Subject: Re: Row pattern recognition From: Tatsuo Ishii In-Reply-To: References: X-Mailer: Mew version 6.8 on Emacs 29.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2409:11:4120:300:bfbe:5c81:899f:2cae (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Henson, > Hi all, > > A quick heads-up for this thread, cross-referenced from another one. > > Haibo Yan has a patch series adding DISTINCT support to plain aggregate > window functions [1]. As it touches window-aggregate frame handling, I > applied it on top of the current RPR patch set and built the two together. > They combine cleanly today: no rebase conflict, and the regression tests > pass with no change to code or tests. > > This is structural, not luck. RPR requires the frame to start at CURRENT > ROW, while that feature requires UNBOUNDED PRECEDING, so a single window can > satisfy at most one of them -- no overlap. > > That said, the DISTINCT roadmap plans to relax its UNBOUNDED-PRECEDING > restriction (the sliding-frame patches), while RPR's CURRENT-ROW requirement > is fixed by the standard. So as those frame restrictions are lifted the two > could start to overlap, and at that point we'd likely need to review the > related frame-handling changes together. Nothing to act on now -- just > flagging it so we keep an eye on it. > > Full review of the DISTINCT series is in the other thread [1]. > > [1] > https://www.postgresql.org/message-id/CAAAe_zCfVbNrOUF5FaE38EcwYbtXacThR9xdVe2UJJPeDSL2KA@mail.gmail.com Thanks for letting know us! -- Tatsuo Ishii SRA OSS K.K. English: http://www.sraoss.co.jp/index_en/ Japanese:http://www.sraoss.co.jp