Re: Segmentation fault using digest from pg_crypto

From: Richard Huxton <dev(at)archonet(dot)com>
To: Manuel Sugawara <masm(at)fciencias(dot)unam(dot)mx>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Segmentation fault using digest from pg_crypto
Date: 2007-08-24 07:27:30
Message-ID: 46CE8862.4020605@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Albe Laurenz 2007-08-24 07:57:41 Re: Undetected corruption of table files
Previous Message Marko Kreen 2007-08-24 07:13:27 Re: Segmentation fault using digest from pg_crypto