Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvC4D-0004Os-GF for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Jan 2013 19:21:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TvC4C-00074z-IX for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Jan 2013 19:21:00 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvC4B-000740-8z for pgsql-bugs@postgresql.org; Tue, 15 Jan 2013 19:20:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvC4A-0004pw-75 for pgsql-bugs@postgresql.org; Tue, 15 Jan 2013 19:20:58 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0FJKvJQ000684; Tue, 15 Jan 2013 14:20:57 -0500 (EST) From: Tom Lane To: Heikki Linnakangas cc: 1584171677@qq.com, pgsql-bugs@postgresql.org Subject: Re: BUG #7811: strlen(NULL) cause psql crash In-reply-to: <50F5AAE9.8050105@vmware.com> References: <50F591E4.2080508@vmware.com> <29141.1358273456@sss.pgh.pa.us> <50F59D30.5090908@vmware.com> <29520.1358274561@sss.pgh.pa.us> <50F5A779.5060304@vmware.com> <525.1358277231@sss.pgh.pa.us> <50F5AAE9.8050105@vmware.com> Comments: In-reply-to Heikki Linnakangas message dated "Tue, 15 Jan 2013 21:15:53 +0200" Date: Tue, 15 Jan 2013 14:20:57 -0500 Message-ID: <683.1358277657@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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Heikki Linnakangas writes: > Hmm, I wonder if an empty string would be better? It'd look a bit odd, > but at least it would not mislead you to think you're connected to a > database called "none". Works for me as a back-branch fix, especially since then we're adding zero new strings to the back branches. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs