Re: BUG #6185: Segmentation fault with NULL string columns - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #6185: Segmentation fault with NULL string columns
Date
Msg-id 1314728550-sup-7284@alvh.no-ip.org
Whole thread Raw
In response to BUG #6185: Segmentation fault with NULL string columns  ("Isaac Jurado" <ijurado@econcept.es>)
Responses Re: BUG #6185: Segmentation fault with NULL string columns
List pgsql-bugs
Excerpts from Isaac Jurado's message of mar ago 30 05:51:55 -0300 2011:
>
> The following bug has been logged online:
>
> Bug reference:      6185
> Logged by:          Isaac Jurado
> Email address:      ijurado@econcept.es
> PostgreSQL version: 8.4.8
> Operating system:   Ubuntu 10.04.03 LTS (x86_64)
> Description:        Segmentation fault with NULL string columns
> Details:
>
> Here's the script to make it fail:
>
> CREATE DATABASE killme;
> \c killme
> CREATE FUNCTION to_ascii(bytea, name) RETURNS text AS 'to_ascii_encname'
> LANGUAGE internal;

Seems you neglected to mark the function STRICT.

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-bugs by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: BUG #6185: Segmentation fault with NULL string columns
Next
From: "Lampa"
Date:
Subject: BUG #6186: out of memory while analyze