Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZ1fg-0000bi-RX for pgsql-jdbc@arkaria.postgresql.org; Wed, 01 Feb 2017 20:38:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cZ1fg-0001GN-ET for pgsql-jdbc@arkaria.postgresql.org; Wed, 01 Feb 2017 20:38:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cZ1fg-0001GC-2d for pgsql-jdbc@postgresql.org; Wed, 01 Feb 2017 20:38:28 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cZ1fc-0003DG-Fp for pgsql-jdbc@postgresql.org; Wed, 01 Feb 2017 20:38:27 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cZ1fV-0007QR-34 for pgsql-jdbc@postgresql.org; Wed, 01 Feb 2017 21:38:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Using \errverbose through JDBC Date: Wed, 1 Feb 2017 21:38:13 +0100 Lines: 12 Message-ID: References: <7868.1485962641@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: <7868.1485962641@sss.pgh.pa.us> X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Tom Lane schrieb am 01.02.2017 um 16:24: > So really what would be appropriate for JDBC to provide, IMO, is > some equivalent of libpq's PQresultErrorField(). Perhaps that's > already there. The JDBC driver already does that. Vladimir pointed me to the correct location: https://jdbc.postgresql.org/documentation/publicapi/org/postgresql/util/ServerErrorMessage.html -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc