reg_pg_stefanz@xxxxxxxxxxxxx writes: > However, I poked around a little bit, and this does not seem to solve > all potential use cases, when I modify the simplified test by deferring > the lookup to be done inside the loop as an extra lookup instead of > doing it directly in the loop (whether that makes sense is another > question) , then this still produces the error: Ugh. Thanks for the test case! regards, tom lane