Re: Pl/pgsql functions causing crashes in 8.2.2

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема Re: Pl/pgsql functions causing crashes in 8.2.2
Дата
Msg-id e51f66da0702060233y6a6b77bes28c6a157d3f5df9a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Pl/pgsql functions causing crashes in 8.2.2  ("Marko Kreen" <markokr@gmail.com>)
Ответы Re: Pl/pgsql functions causing crashes in 8.2.2
Re: Pl/pgsql functions causing crashes in 8.2.2
Список pgsql-hackers
On 2/6/07, Marko Kreen <markokr@gmail.com> wrote:
> Indeed, the code can crash on NULL values as the NULL checks
> are missing or wrong in the functions.  Actually all the various
> functions except newid() should be declared STRICT IMMUTABLE
> thus immidiately avoiding problems with NULLs.
>
> Could you reproduce the crash with this change?  I'll try
> to play with this myself too.

STRICT IMMUTABLE fixed the crash for me so seems it was bug
in the module.  Although it did not happen in 8.2.1 so seems
some change in 8.2.2 made it trigger.

Attached is a patch for uniqueindent-0.2 that removes the
buggy checks and makes functions STRICT IMMUTABLE.

--
marko

Вложения

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Dead code in _bt_split?
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Bitmap index thoughts