Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJlK3-0005QZ-Og for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Dec 2016 18:09:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cJlK3-0007BS-0c for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Dec 2016 18:09:03 +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 1cJlK2-00079M-3q for pgsql-hackers@postgresql.org; Wed, 21 Dec 2016 18:09:02 +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 1cJlJv-0005pR-FI for pgsql-hackers@postgresql.org; Wed, 21 Dec 2016 18:09:00 +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 uBLI8rux001313; Wed, 21 Dec 2016 13:08:53 -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: <21630.1482341251@sss.pgh.pa.us> References: <19872.1482338965@sss.pgh.pa.us> <21630.1482341251@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 21 Dec 2016 12:27:31 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1311.1482343733.1@sss.pgh.pa.us> Date: Wed, 21 Dec 2016 13:08:53 -0500 Message-ID: <1312.1482343733@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 I 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. BTW, looking closer, I notice that the dblink case already has errcontext("Error occurred on dblink connection named \"%s\": %s.", dblink_context_conname, dblink_context_msg))); so we probably don't need the connection name in the primary error message. Now I think "could not obtain message string for remote error" would be a sufficient message. In the postgres_fdw case, I'd be inclined to use the same replacement primary message. Maybe we should think about adding the server name to the errcontext there, but that seems like an independent improvement. 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