BUG #17644: EXPLAIN VERBOSE fails on query with SEARCH BREADTH FIRST
The Post Office <noreply@postgresql.org>
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: postgresql@zr40.nl
Date: 2022-10-16T16:50:14Z
Lists: pgsql-bugs
The following bug has been logged on the website: Bug reference: 17644 Logged by: Matthijs van der Vleuten Email address: postgresql@zr40.nl PostgreSQL version: 14.5 Operating system: Debian 11.5 Description: 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 EXPLAIN without VERBOSE, and the query itself, do not raise an error. Also, the error does not appear when using SEARCH DEPTH FIRST. Reproduced on 14.5 and 15.0.
Commits
-
Fix get_expr_result_type() to find field names for RECORD Consts.
- 8a15b4178c40 12.17 landed
- 59bc0dfe44a6 13.13 landed
- 479b99125dcc 11.22 landed
-
Fix EXPLAIN of SEARCH BREADTH FIRST with a constant initial value.
- d57534740b76 16.0 landed
- d4abb0bc5abb 15.1 landed
- 8122160ffb68 14.6 landed