Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 363A9B5DBCE for ; Tue, 30 Aug 2011 15:23:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 62984-03 for ; Tue, 30 Aug 2011 18:23:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id F070CB5DBDA for ; Tue, 30 Aug 2011 15:23:01 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 7B128348049; Tue, 30 Aug 2011 11:23:01 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6ixZlAIAjt3o; Tue, 30 Aug 2011 11:22:59 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [200.126.65.205]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 3841B348046; Tue, 30 Aug 2011 11:22:59 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 7BA0C6E489; Tue, 30 Aug 2011 15:22:56 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: pgsql-bugs Subject: Re: BUG #6185: Segmentation fault with NULL string columns From: Alvaro Herrera To: Isaac Jurado In-reply-to: <201108300851.p7U8ptkf014277@wwwmaster.postgresql.org> References: <201108300851.p7U8ptkf014277@wwwmaster.postgresql.org> Date: Tue, 30 Aug 2011 15:22:56 -0300 Message-Id: <1314728550-sup-7284@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201108/192 X-Sequence-Number: 31004 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 The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support