From: Tom Lane <tgl@sss.pgh.pa.us>
To: postgresql@zr40.nl
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17644: EXPLAIN VERBOSE fails on query with SEARCH BREADTH FIRST
Date: Sun, 16 Oct 2022 19:21:50 -0400
Message-ID: <2052064.1665962510@sss.pgh.pa.us> (raw)
In-Reply-To: <17644-3bd1f3036d6d7a16@postgresql.org>
References: <17644-3bd1f3036d6d7a16@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> The following query causes EXPLAIN VERBOSE to raise an error.
> EXPLAIN VERBOSE
> WITH RECURSIVE test AS (
> SELECT 1 AS x
> UNION ALL
> SELECT x+1
> FROM test
> ) SEARCH BREADTH FIRST BY x SET y
> SELECT * FROM test LIMIT 10;
> ERROR: record type has not been registered
Thanks for the report! We'd fixed some closely-related cases during
v14 beta, but nobody stumbled on this one. The key point seems to
be using all constants in the non-recursive term's SELECT list.
regards, tom lane
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: tgl@sss.pgh.pa.us, postgresql@zr40.nl, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17644: EXPLAIN VERBOSE fails on query with SEARCH BREADTH FIRST
In-Reply-To: <2052064.1665962510@sss.pgh.pa.us>
* 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