Re: function calls in WHERE clause

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Lee Harr" <missive(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: function calls in WHERE clause
Date: 2004-09-08 21:42:12
Message-ID: 24249.1094679732@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Lee Harr" <missive(at)hotmail(dot)com> writes:
> I should note that this_program() is defined as VOLATILE.

So don't do that ;-)

> It was a while ago, but I believe this is because I have
> a this_program() defined in each schema and they
> return a different value depending on which schema
> you are in when you call the function...

But each one of these is individually immutable, no? If it's not,
how are you expecting your query-builder function to give the same
answers as before?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Wes 2004-09-08 22:47:47 Re: How to determine a database is intact?
Previous Message Lee Harr 2004-09-08 21:13:05 function calls in WHERE clause