Re: PostgreSQL executing my function too many times during query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "D(dot) Dante Lorenso" <dante(at)lorenso(dot)com>
Cc: Postgres-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL executing my function too many times during query
Date: 2008-05-17 00:25:49
Message-ID: 4524.1210983949@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"D. Dante Lorenso" <dante(at)lorenso(dot)com> writes:
> Tom Lane wrote:
>> I can't reproduce any such problem in 8.2 branch tip, and a desultory
>> scan of the CVS history back to 8.2.4 doesn't turn up any obviously
>> related patches. Please provide a self-contained test case for what
>> you're seeing.

> I think this is a problem with the BYTEA type.

So far as I can tell, it's a problem with having declared the function
STABLE. You want IMMUTABLE if you're hoping to have this usage folded
to a constant.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message PJ 2008-05-17 01:23:29 migration problem
Previous Message Tom Lane 2008-05-17 00:19:09 Re: Pg_dump version mismatch