Re: Segmentation fault using digest from pg_crypto - Mailing list pgsql-hackers

From Richard Huxton
Subject Re: Segmentation fault using digest from pg_crypto
Date
Msg-id 46CE8862.4020605@archonet.com
Whole thread Raw
In response to Re: Segmentation fault using digest from pg_crypto  (Manuel Sugawara <masm@fciencias.unam.mx>)
List 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 by date:

Previous
From: "Marko Kreen"
Date:
Subject: Re: Segmentation fault using digest from pg_crypto
Next
From: Magnus Hagander
Date:
Subject: Buildfarm failures MSVC