Re: vacuumlo fails in the presence of a index on expression - demo sql included

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: vacuumlo fails in the presence of a index on expression - demo sql included
Дата
Msg-id 12432.1092949808@sss.pgh.pa.us
обсуждение исходный текст
Ответ на vacuumlo fails in the presence of a index on expression - demo sql included  (Frank van Vugt <ftm.van.vugt@foxi.nl>)
Список pgsql-bugs
Frank van Vugt <ftm.van.vugt@foxi.nl> writes:
> CREATE FUNCTION get_level(varchar) RETURNS int LANGUAGE 'sql' IMMUTABLE STRICT
> SECURITY INVOKER AS 'SELECT id FROM level WHERE abbreviation = $1';

The bug is in this function: it's assuming that "level" will always be
in the current search path.  Perhaps you want "FROM public.level".

Frankly, since this function is clearly *not* immutable, almost any
misbehavior of an index depending on it is going to be considered
not-a-bug...

            regards, tom lane

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

Предыдущее
От: Frank van Vugt
Дата:
Сообщение: vacuumlo fails in the presence of a index on expression - demo sql included
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [pgsql-hackers-win32] postgresql 8.0b1 Win32 observations