From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: vik@postgresfriends.org
Subject: BUG #17723: cache lookup failed for type 0
Date: Fri, 16 Dec 2022 15:38:04 +0000
Message-ID: <17723-2c4985ff111e7bba@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 17723
Logged by: Vik Fearing
Email address: vik@postgresfriends.org
PostgreSQL version: Unsupported/Unknown
Operating system: Ubuntu
Description:
This query:
WITH RECURSIVE
run(x, y) AS (
SELECT 0, 0
UNION ALL
SELECT x, y FROM run AS r WHERE r.is_cycle
)
CYCLE x, y SET is_cycle USING path
TABLE run
;
in which I mistakenly tried to access the is_cycle column from inside the
wle, provokes the following error:
ERROR: XX000: cache lookup failed for type 0
LOCATION: typeOrDomainTypeRelid, parse_type.c:699
Even though I did not need to add that WHERE clause because the CYCLE clause
does it for me, I still should have been able to. And in any case, I should
not have received an XX000 error.
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, vik@postgresfriends.org
Subject: Re: BUG #17723: cache lookup failed for type 0
In-Reply-To: <17723-2c4985ff111e7bba@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