pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Isaac Jurado <ijurado@econcept.es>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6185: Segmentation fault with NULL string columns
Date: Tue, 30 Aug 2011 15:22:56 -0300
Message-ID: <1314728550-sup-7284@alvh.no-ip.org> (raw)
In-Reply-To: <201108300851.p7U8ptkf014277@wwwmaster.postgresql.org>
References: <201108300851.p7U8ptkf014277@wwwmaster.postgresql.org>

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



view thread (5+ messages)  latest in thread

Message-ID: <1314728550-sup-7284@alvh.no-ip.org>
Permalink:  ../1314728550-sup-7284@alvh.no-ip.org/
Also on:    postgresql.org/message-id/1314728550-sup-7284@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@commandprompt.com, ijurado@econcept.es
  Subject: Re: BUG #6185: Segmentation fault with NULL string columns
  In-Reply-To: <1314728550-sup-7284@alvh.no-ip.org>
  References: <201108300851.p7U8ptkf014277@wwwmaster.postgresql.org> <1314728550-sup-7284@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox