Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJkhO-0003TR-3F for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Dec 2016 17:29:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cJkhN-00028R-BT for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Dec 2016 17:29:05 +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 1cJkfy-0000XE-5k for pgsql-hackers@postgreSQL.org; Wed, 21 Dec 2016 17:27:38 +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 1cJkfu-0004uM-2w for pgsql-hackers@postgreSQL.org; Wed, 21 Dec 2016 17:27:36 +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 uBLHRV6h021631; Wed, 21 Dec 2016 12:27:31 -0500 From: Tom Lane To: Joe Conway cc: pgsql-hackers@postgreSQL.org Subject: Re: Getting rid of "unknown error" in dblink and postgres_fdw In-reply-to: References: <19872.1482338965@sss.pgh.pa.us> Comments: In-reply-to Joe Conway message dated "Wed, 21 Dec 2016 09:22:25 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21629.1482341251.1@sss.pgh.pa.us> Date: Wed, 21 Dec 2016 12:27:31 -0500 Message-ID: <21630.1482341251@sss.pgh.pa.us> X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Joe Conway writes: > On 12/21/2016 08:49 AM, Tom Lane wrote: >> I propose that we should change that string to "could not obtain message >> string for error on connection "foo"", or something along that line. >> >> postgres_fdw has the same disease. It wouldn't have the notion of a named >> connection, but maybe we could insert the foreign server name instead. > Seems reasonable to me. I can work on it if you'd like. Do you think > this should be backpatched? If you have time for it, please do, I have lots on my plate already. I'd vote for back-patching; the benefits of a clearer error message are obvious, and it hardly seems likely that any existing applications are depending on this specific error string. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers