pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Nested CASE-WHEN scoping
Date: Thu, 16 Jun 2011 23:27:00 +0300
Message-ID: <4DFA6714.2070609@enterprisedb.com> (raw)
In-Reply-To: <BANLkTik8PR06aTkogrBRobEvpp_8+D-Fkw@mail.gmail.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>
	<23055.1306765290@sss.pgh.pa.us>
	<4DE512FC.9070707@enterprisedb.com>
	<4DE93A08.90309@enterprisedb.com>
	<BANLkTik8PR06aTkogrBRobEvpp_8+D-Fkw@mail.gmail.com>

On 16.06.2011 22:46, Pavel Stehule wrote:
> I have a query - should be ExpressionParam used for removing a
> multiple function call when composite result is expanded?
>
> With some similar optimization a SELECT (fce(x)).* FROM tab will be optimal

Hmm, I don't think it will work as is for that purpose, as each 
targetlist item is a separate expression, and ExpressionParams only work 
within an expression.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com



view thread (15+ messages)  latest in thread

Message-ID: <4DFA6714.2070609@enterprisedb.com>
Permalink:  ../4DFA6714.2070609@enterprisedb.com/
Also on:    postgresql.org/message-id/4DFA6714.2070609@enterprisedb.com

 · 

reply

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: heikki.linnakangas@enterprisedb.com, pavel.stehule@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Nested CASE-WHEN scoping
  In-Reply-To: <4DFA6714.2070609@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> <23055.1306765290@sss.pgh.pa.us> <4DE512FC.9070707@enterprisedb.com> <4DE93A08.90309@enterprisedb.com> <BANLkTik8PR06aTkogrBRobEvpp_8+D-Fkw@mail.gmail.com> <4DFA6714.2070609@enterprisedb.com>

* 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