Re: External search engine, advice

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: External search engine, advice
Дата
Msg-id 12218.990380657@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: External search engine, advice  (mlw <markw@mohawksoft.com>)
Ответы Re: Re: External search engine, advice  (Don Baccus <dhogaza@pacifier.com>)
Список pgsql-hackers
mlw <markw@mohawksoft.com> writes:
> Am I out in left field here? Does anyone see this as a problem? I guess there
> should be three states to the lifetime of a functions return value?

There has been some talk of that, but nailing down exactly what the
semantics ought to be still needs more thought.

As far as optimizing indexscans goes, the correct intermediate concept
would be something like "result is fixed within any one scan", not any
one transaction.  You wouldn't really want to find that
begin;select * from foo where x = functhatreadsbar();update bar ...;select * from foo where x =
functhatreadsbar();end;

does not give you the desired results.
        regards, tom lane


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

Предыдущее
От: mlw
Дата:
Сообщение: Re: External search engine, advice
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Functions returning sets