Skip site navigation (1) Skip section navigation (2)

Re: Nested CASE-WHEN scoping

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Nested CASE-WHEN scoping
Date: 2011-05-25 14:47:56
Message-ID: 5487.1306334876@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)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

In response to

Responses

pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2011-05-25 14:58:41
Subject: Re: Expression Evaluator used for creating the plan tree / stmt ?
Previous:From: Simon RiggsDate: 2011-05-25 14:41:26
Subject: Re: use less space in xl_xact_commit patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group