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 1vqq6l-001Z57-0B for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Feb 2026 10:09:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vqq6k-00DX5X-0e for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Feb 2026 10:09:07 +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.96) (envelope-from ) id 1vqlHj-00CYEs-00 for pgsql-bugs@lists.postgresql.org; Fri, 13 Feb 2026 05:00:07 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vqlHg-00000000OXV-224U for pgsql-bugs@lists.postgresql.org; Fri, 13 Feb 2026 05:00:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Message-ID:Date:Reply-To:Cc:From:To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Content-ID: Content-Description:In-Reply-To:References; bh=gUU3e5bXJNpv65d1D4zJo5OcTFKWigElz4tv5ucOF1g=; b=6y6WzDV2SmCdsRBIjfzS6vXE70 5EMcLC0zODyZPuZlpYtMo/7LSLHhg2H/PdzDdYUAWY4XIoF6pbW0oQ5qsbCKp0/Iub0Rg8EJw4cnH 38NSkWRMUBEt+of354ghY3K9jo1o0WBozF9pYASTm2uvBxc0BTXBr+RYUxbUZk6bXb8keyBp+IuS1 smFW4CMcOfkIP7peQwmLgwpb40oY61GTR8WjsKRlwdXVWp1yW5YuHtUFGWwcDA0S1HPiI7oaXKdr5 3stvqFFBZwyEt5zCTGHwguKgXa2Q+YF0GmHmpeDB2ZlvZgY/3NMolKRDH2oavpgP4JjyLMXX4Mj44 0LMjE5bg==; Received: from wrigleys.postgresql.org ([2a02:16a8:dc51::60]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vqlHg-001Bfw-1C for pgsql-bugs@lists.postgresql.org; Fri, 13 Feb 2026 05:00:05 +0000 Received: from localhost ([127.0.0.1] helo=wrigleys.postgresql.org) by wrigleys.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vqlHe-002j8P-2Y for pgsql-bugs@lists.postgresql.org; Fri, 13 Feb 2026 05:00:03 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #19405: Assertion in eval_windowaggregates() fails due to integer overflow To: pgsql-bugs@lists.postgresql.org From: PG Bug reporting form Cc: exclusion@gmail.com Reply-To: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Date: Fri, 13 Feb 2026 05:00:01 +0000 Message-ID: <19405-1ecf025dda171555@postgresql.org> X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The following bug has been logged on the website: Bug reference: 19405 Logged by: Alexander Lakhin Email address: exclusion@gmail.com PostgreSQL version: 18.2 Operating system: Ubuntu 24.04 Description: =20 The following script: CREATE TABLE t (i integer); INSERT INTO t SELECT g FROM generate_series(1, 2) g; SELECT SUM(i) OVER (ROWS BETWEEN 1 PRECEDING AND 0x7fffffffffffffff FOLLOWING EXCLUDE CURRENT ROW) FROM t; triggers: TRAP: failed Assert("aggregatedupto_nonrestarted <=3D winstate->aggregatedupto"), File: "nodeWindowAgg.c", Line: 1024, PID: 3288248 ExceptionalCondition at assert.c:51:13 eval_windowaggregates at nodeWindowAgg.c:1061:31 ExecWindowAgg at nodeWindowAgg.c:2367:5 ExecProcNode at executor.h:320:1 ExecutePlan at execMain.c:1711:10 standard_ExecutorRun at execMain.c:366:3 ... Reproduced on REL_14_STABLE .. master.