agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Gerardo Herzig <gherzig@fmed.uba.ar>
Cc: pgsql-performance@postgresql.org, pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Re: [PERFORM] performance drop when function argument is evaluated in WHERE clause
Date: Tue, 08 Apr 2014 13:41:37 -0400
Message-ID: <19249.1396978897@sss.pgh.pa.us> (raw)
In-Reply-To: <34678100.310095.1396978407846.JavaMail.root@fmed.uba.ar>
References: <34678100.310095.1396978407846.JavaMail.root@fmed.uba.ar>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
Gerardo Herzig <gherzig@fmed.uba.ar> writes:
> Tom, thanks (as allways) for your answer. This is a 9.1.12. I have to say, im not very happy about if-elif-else'ing at all.
> The "conditional filter" es a pretty common pattern in our functions, i would have to add (and maintain) a substantial amount of extra code.
In that case consider moving to 9.2 or later. I believe it'd handle
this scenario better.
regards, tom lane
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (4+ messages)
Message-ID: <19249.1396978897@sss.pgh.pa.us>
Permalink: ../19249.1396978897@sss.pgh.pa.us/
Also on: postgresql.org/message-id/19249.1396978897@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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, gherzig@fmed.uba.ar
Subject: Re: Re: [PERFORM] performance drop when function argument is evaluated in WHERE clause
In-Reply-To: <19249.1396978897@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox