From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #11671: UNACCENT call with constant arg evaluated for each row
Date: Tue, 14 Oct 2014 23:57:24 -0700 (PDT)
Message-ID: <1413356244696-5823070.post@n5.nabble.com> (raw)
In-Reply-To: <11263.1413312030@sss.pgh.pa.us>
References: <20141014091221.25461.16786@wrigleys.postgresql.org>
<11263.1413312030@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Tom Lane-2 wrote
> t.chaumeny@
> writes:
>> Since UNACCENT function
>
> [...] than naive SQL [...]
Was that intentional... ;)
Given the planner knows its safe, and has to do a sequential scan and so
evaluate the expression many times, the question becomes why then doesn't it
choose that which is, in reality, the faster plan?
Reading 9.3@35.6
http://www.postgresql.org/docs/9.3/static/xfunc-volatility.html
I take it had the plan used an index instead of a sequential scan the
optimization would have occurred...
David J.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-11671-UNACCENT-call-with-constant-arg-evaluated-for-each...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: david.g.johnston@gmail.com
Subject: Re: BUG #11671: UNACCENT call with constant arg evaluated for each row
In-Reply-To: <1413356244696-5823070.post@n5.nabble.com>
References: <20141014091221.25461.16786@wrigleys.postgresql.org> <11263.1413312030@sss.pgh.pa.us> <1413356244696-5823070.post@n5.nabble.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