Re: Segmentation fault using digest from pg_crypto

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Segmentation fault using digest from pg_crypto
Дата
Msg-id 46CE8862.4020605@archonet.com
обсуждение исходный текст
Ответ на Re: Segmentation fault using digest from pg_crypto  (Manuel Sugawara <masm@fciencias.unam.mx>)
Список pgsql-hackers
Manuel Sugawara wrote:

>> I have a simple query that uses digest(data, 'sha1') and consistently
>> crashes the backend
> 
> The problem is with null arguments:
> 
> ciencias=# select digest(null, 'sha1');
> el servidor ha cerrado la conexión inesperadamente,

Can you check if the function is defined "STRICT"? That should 
automatically return null if a parameter is null without calling the 
function.

Simplest way to check is probably to pg_dump --schema-only and search 
for the function defn.

--   Richard Huxton  Archonet Ltd


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

Предыдущее
От: "Marko Kreen"
Дата:
Сообщение: Re: Segmentation fault using digest from pg_crypto
Следующее
От: Magnus Hagander
Дата:
Сообщение: Buildfarm failures MSVC