From: Tom Lane <tgl@sss.pgh.pa.us>
To: t.chaumeny@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #11671: UNACCENT call with constant arg evaluated for each row
Date: Tue, 14 Oct 2014 14:40:30 -0400
Message-ID: <11263.1413312030@sss.pgh.pa.us> (raw)
In-Reply-To: <20141014091221.25461.16786@wrigleys.postgresql.org>
References: <20141014091221.25461.16786@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
t.chaumeny@gmail.com writes:
> Since UNACCENT function is defined as STABLE, I would expect its result to
> be evaluated only once in the second query.
The system does not promise any such thing for stable functions.
STABLE is a marker that it is *safe* to evaluate the function fewer
times than naive SQL semantics would suggest; it is not a requirement.
regards, tom lane
--
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: tgl@sss.pgh.pa.us, t.chaumeny@gmail.com
Subject: Re: BUG #11671: UNACCENT call with constant arg evaluated for each row
In-Reply-To: <11263.1413312030@sss.pgh.pa.us>
References: <20141014091221.25461.16786@wrigleys.postgresql.org> <11263.1413312030@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