Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbs3i-0003cp-1H for pgsql-sql@arkaria.postgresql.org; Thu, 09 Feb 2017 16:59:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cbs3h-00019J-KG for pgsql-sql@arkaria.postgresql.org; Thu, 09 Feb 2017 16:59:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbs2k-0008Il-RX for pgsql-sql@postgresql.org; Thu, 09 Feb 2017 16:58:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbs2i-0002Pj-9Q for pgsql-sql@postgresql.org; Thu, 09 Feb 2017 16:58:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v19GvwIX012435; Thu, 9 Feb 2017 11:57:58 -0500 From: Tom Lane To: Herwig Goemans cc: pgsql-sql@postgresql.org Subject: Re: function source code not returning from inside a pgsql function. In-reply-to: References: Comments: In-reply-to Herwig Goemans message dated "Thu, 09 Feb 2017 17:39:19 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12433.1486659478.1@sss.pgh.pa.us> Date: Thu, 09 Feb 2017 11:57:58 -0500 Message-ID: <12434.1486659478@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Herwig Goemans writes: > v_doc_fnc = replace(v_doc_fnc,'public.',null); I'm pretty sure that will result in NULL always. NULL is not another spelling for the empty string, no matter what Oracle says ;-) regards, tom lane -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql