Re: Nested CASE-WHEN scoping - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Nested CASE-WHEN scoping
Date
Msg-id 5487.1306334876@sss.pgh.pa.us
Whole thread Raw
In response to Nested CASE-WHEN scoping  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: Nested CASE-WHEN scoping  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> While looking at fixing the multiple-evaluation issue in IN and BETWEEN 
> discussed a while ago, I realized that the current assumption that only 
> one CaseTestExpr placeholder needs to be valid at any given time is not 
> true.

[ scratches head ... ]  Why does the save/restore in ExecEvalCase not
take care of this?

> So I'm going to put the BETWEEN/IN fix aside for now, and refactor the 
> placeholder infrastructure to handle several simultaneous placeholders, 

That sounds like a mess, and I'm not even convinced it'll solve the
problem ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Hitoshi Harada
Date:
Subject: Re: Pull up aggregate subquery
Next
From: Robert Haas
Date:
Subject: Re: Volunteering as Commitfest Manager