Re: function calls in WHERE clause

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: function calls in WHERE clause
Дата
Msg-id 24249.1094679732@sss.pgh.pa.us
обсуждение исходный текст
Ответ на function calls in WHERE clause  ("Lee Harr" <missive@hotmail.com>)
Список pgsql-general
"Lee Harr" <missive@hotmail.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

В списке pgsql-general по дате отправления:

Предыдущее
От: "Lee Harr"
Дата:
Сообщение: function calls in WHERE clause
Следующее
От: Wes
Дата:
Сообщение: Re: How to determine a database is intact?