Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id CF007B4BFF2 for ; Wed, 16 Nov 2011 11:44:58 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 64160-01 for ; Wed, 16 Nov 2011 15:44:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 28CF3B4BFF1 for ; Wed, 16 Nov 2011 11:44:53 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RQhfQ-00049O-H9 for pgsql-bugs@postgresql.org; Wed, 16 Nov 2011 15:44:52 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pAGFicAD023580; Wed, 16 Nov 2011 10:44:38 -0500 (EST) To: "Jonas Forsman" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6295: Update fails on empty concatenated strings In-reply-to: <23407.1321457853@sss.pgh.pa.us> References: <201111160847.pAG8lCdx067272@wwwmaster.postgresql.org> <23407.1321457853@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 16 Nov 2011 10:37:33 -0500" Date: Wed, 16 Nov 2011 10:44:38 -0500 Message-ID: <23579.1321458278@sss.pgh.pa.us> From: Tom Lane 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: 201111/116 X-Sequence-Number: 31711 I wrote: > You might possibly want to spell > the above as SET comment = '...' || coalesce(comment, null) ... Sheesh. coalesce(comment, '') of course. Need more caffeine. regards, tom lane