From: Richard Huxton <dev@archonet.com>
To: Julius Tuskenis <julius@nsoft.lt>
Cc: pgsql-performance@postgresql.org
Subject: Re: where clause + function, execution order
Date: Fri, 11 Nov 2011 15:59:49 +0000
Message-ID: <4EBD4675.2060604@archonet.com> (raw)
In-Reply-To: <4EBD4518.5070508@nsoft.lt>
References: <13DE38ECCB7CE74890E7150A7CCB610D3642DD47@exc1.wigeo.lan>
<4EBD4518.5070508@nsoft.lt>
On 11/11/11 15:54, Julius Tuskenis wrote:
> On 2011.11.11 17:38, Sorin Dudui wrote:
>> I have the following function:
>>
>> CREATE OR REPLACE FUNCTION xxx(text)
[snip]
>> LANGUAGE sql STABLE
> Function execute plan is prepared when creating it, so the "where"
> clause should check the function result not altering its execution..
Not true for SQL functions. They can be inlined, but I'm not sure if
this one will be.
What does EXPLAIN ANALYSE show for this query?
--
Richard Huxton
Archonet Ltd
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: dev@archonet.com, julius@nsoft.lt
Subject: Re: where clause + function, execution order
In-Reply-To: <4EBD4675.2060604@archonet.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