Re: Index optimization ?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Index optimization ?
Дата
Msg-id 20050115183241.GA9898@winnie.fuhr.org
обсуждение исходный текст
Ответ на Index optimization ?  (Bo Lorentsen <bl@netgroup.dk>)
Ответы Re: Index optimization ?  (Bo Lorentsen <bl@netgroup.dk>)
Список pgsql-general
On Sat, Jan 15, 2005 at 07:03:43PM +0100, Bo Lorentsen wrote:

> select * from sale where id = currval( 'sale_id_seq' )::bigint;
>
> But this still did not work (still using seq scan) :-(

currval() is volatile.  See "Function Volatility Categories" in the
"Extending SQL" chapter of the documentation and search the list
archives for past discussion of currval()'s volatility.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Index optimization ?
Следующее
От: PFC
Дата:
Сообщение: Re: OID Usage