pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: luy70@psu.edu
Subject: BUG #18877: PostgreSQL triggers assertion failure
Date: Fri, 04 Apr 2025 18:48:21 +0000
Message-ID: <18877-c3c3ad75845833bb@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18877
Logged by:          Yu Liang
Email address:      luy70@psu.edu
PostgreSQL version: 17.4
Operating system:   Ubuntu 24.04 LTS ARM64 VM
Description:        

In the debug build of PostgreSQL 17.4, compiled with `configure
--enable-debug --prefix=$(pwd) --exec-prefix=$(pwd) --enable-cassert`,
triggered Assertion Failure when executing the following statement: 

```sql
SELECT ALL GROUP BY ALL ( ), CUBE ( CASE WHEN FALSE THEN TRUE END )
INTERSECT ALL SELECT ALL FROM JSON_ARRAY ( WITH any_cte_name AS ( ( TABLE
v00 ) ) VALUES ( FALSE ) ), any_table_name GROUP BY CUBE ( CASE WHEN TRUE
THEN FALSE END );
```

The assertion triggered is: Assert("IsA(cte->ctequery, InsertStmt) ||
IsA(cte->ctequery, UpdateStmt) || IsA(cte->ctequery, DeleteStmt) ||
IsA(cte->ctequery, MergeStmt)"). 
File: "/home/postgresql/postgres/bld/../src/backend/parser/parse_cte.c",
Line: 150.



view thread (9+ messages)  latest in thread

Message-ID: <18877-c3c3ad75845833bb@postgresql.org>
Permalink:  ../18877-c3c3ad75845833bb@postgresql.org/
Also on:    postgresql.org/message-id/18877-c3c3ad75845833bb@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, luy70@psu.edu
  Subject: Re: BUG #18877: PostgreSQL triggers assertion failure
  In-Reply-To: <18877-c3c3ad75845833bb@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox