Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2Id1-0002n3-1B for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jan 2021 18:54:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l2Icz-0006a8-VB for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jan 2021 18:54:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2Icz-0006a1-OT for pgsql-hackers@lists.postgresql.org; Wed, 20 Jan 2021 18:54:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2Icx-000866-71 for pgsql-hackers@postgresql.org; Wed, 20 Jan 2021 18:54:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 10KIshDr754450; Wed, 20 Jan 2021 13:54:43 -0500 From: Tom Lane To: Alvaro Herrera cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: strange error reporting In-reply-to: <20210120184446.GA22263@alvherre.pgsql> References: <20210120184446.GA22263@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Wed, 20 Jan 2021 15:44:46 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <754448.1611168883.1@sss.pgh.pa.us> Date: Wed, 20 Jan 2021 13:54:43 -0500 Message-ID: <754449.1611168883@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2021-Jan-20, Robert Haas wrote: >> I figured it was something like that. I don't know whether the right >> thing is to use something like PQdb() to get the correct database >> name, or whether we should go with Tom's suggestion and omit that >> detail altogether, but I think showing the empty string when the user >> relied on the default is too confusing. > Well, the patch seems small enough, and I don't think it'll be in any > way helpful to omit that detail. I'm +1 for applying and back-patching that. I still think we might want to just drop the phrase altogether in HEAD, but we wouldn't do that in the back branches, and the message is surely misleading as-is. regards, tom lane