Skip site navigation (1) Skip section navigation (2)

Re: BUG #6185: Segmentation fault with NULL string columns

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Isaac Jurado <ijurado(at)econcept(dot)es>
Cc: pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #6185: Segmentation fault with NULL string columns
Date: 2011-08-30 18:22:56
Message-ID: 1314728550-sup-7284@alvh.no-ip.org (view raw or flat)
Thread:
Lists: 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(at)econcept(dot)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(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

pgsql-bugs by date

Next:From: Heikki LinnakangasDate: 2011-08-30 18:33:17
Subject: Re: BUG #6187: Select query stuck
Previous:From: Heikki LinnakangasDate: 2011-08-30 18:21:03
Subject: Re: BUG #6185: Segmentation fault with NULL string columns

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group