Re: ERROR: XX000: variable not found in subplan target list

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ryan Kelly <rpkelly22@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2022-02-11T04:03:21Z
Lists: pgsql-bugs
Ryan Kelly <rpkelly22@gmail.com> writes:
> After upgrading to 11.15 we have queries failing as follows:
> (postgres@[local]:5432 02:52:54) [capitalrx_test_adjudication_master]>
> EXPLAIN SELECT count(*) FROM adjudication.claims;
> ERROR:  XX000: variable not found in subplan target list

It's impossible to comment on this with this amount of detail.
Please try to extract a self-contained test case.

https://wiki.postgresql.org/wiki/Guide_to_reporting_problems

			regards, tom lane



Commits

  1. Don't use_physical_tlist for an IOS with non-returnable columns.