From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Nested CASE-WHEN scoping
Date: Mon, 30 May 2011 10:21:30 -0400
Message-ID: <23055.1306765290@sss.pgh.pa.us> (raw)
In-Reply-To: <4DE38CCD.80702@enterprisedb.com>
References: <4DDCEEB8.50602@enterprisedb.com>
<5487.1306334876@sss.pgh.pa.us>
<4DDD35B6.2050203@enterprisedb.com>
<27772.1306359110@sss.pgh.pa.us>
<4DE38CCD.80702@enterprisedb.com>
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> I think we can work around both of those by just saving and restoring
> the value of each Param that we set while evaluating an expression,
Huh? That's a waste of time and effort. Just make sure that each such
spot has its own Param number. That's why I'm telling you to do it in
the planner, not the parser --- it is easy to assign globally-unique-
across-the-plan numbers at plan time, in fact we do it already.
> For debugging purposes, it seems like a good idea to invent a new kind
> of Param for these, and keep them separate from PARAM_EXEC params.
I'd vote against that too. PARAM_EXEC Params already have more than one
purpose.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, heikki.linnakangas@enterprisedb.com
Subject: Re: Nested CASE-WHEN scoping
In-Reply-To: <23055.1306765290@sss.pgh.pa.us>
References: <4DDCEEB8.50602@enterprisedb.com> <5487.1306334876@sss.pgh.pa.us> <4DDD35B6.2050203@enterprisedb.com> <27772.1306359110@sss.pgh.pa.us> <4DE38CCD.80702@enterprisedb.com> <23055.1306765290@sss.pgh.pa.us>
* 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