pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Philip Warner <pjw@rhyme.com.au>
Cc: Ang Chin Han <angch@pintoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Functions too slow, even with iscachable?
Date: Mon, 07 Aug 2000 11:52:18 -0400
Message-ID: <6291.965663538@sss.pgh.pa.us> (raw)
In-Reply-To: <3.0.5.32.20000808010738.0281eca0@mail.rhyme.com.au>
References: <20000807171110.A31838@pintoo.com>
	<20000807171110.A31838@pintoo.com>
	<3.0.5.32.20000808010738.0281eca0@mail.rhyme.com.au>

Philip Warner <pjw@rhyme.com.au> writes:
> At 10:58 7/08/00 -0400, Tom Lane wrote:
>> Looks like we need to teach the optimizer that expressions involving
>> params can be treated like simple params for the purposes of
>> optimization.

> So long as the function is cacheable...

Yes, of course --- but the same problem currently arises for cases like
"var = param + 1" ...

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <6291.965663538@sss.pgh.pa.us>
Permalink:  ../6291.965663538@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6291.965663538@sss.pgh.pa.us

 · 

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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pjw@rhyme.com.au, angch@pintoo.com
  Subject: Re: Functions too slow, even with iscachable?
  In-Reply-To: <6291.965663538@sss.pgh.pa.us>
  References: <20000807171110.A31838@pintoo.com> <3.0.5.32.20000808010738.0281eca0@mail.rhyme.com.au> <6291.965663538@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