Re: Pl/pgsql functions causing crashes in 8.2.2
Вложения
В списке pgsql-hackers по дате отправления:
| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера