Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buyKZ-0008Ih-Uk for pgsql-jdbc@arkaria.postgresql.org; Fri, 14 Oct 2016 08:59:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1buyKZ-0007YZ-Cg for pgsql-jdbc@arkaria.postgresql.org; Fri, 14 Oct 2016 08:59:07 +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 1buyKW-0007WT-OI for pgsql-jdbc@postgresql.org; Fri, 14 Oct 2016 08:59:05 +0000 Received: from nm33-vm8.bullet.mail.ir2.yahoo.com ([212.82.97.113]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1buyKP-0001kQ-LM for pgsql-jdbc@postgresql.org; Fri, 14 Oct 2016 08:59:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1476435535; bh=2+CTWVYkRfN3dYVakIv79vt0tYWL4YhDWdY9xPm4sd0=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=EsvgxHjRZeZ1svxWKPXKjpdAr3S47zImWC0b4h7TiHkz6z50Qz4hz7NFq+fQz1yZWMxtS0EwkAdGXEIcrV36fKyPgTu0cbZGETFB7xykIw5BPYaUJnvWMCxkTrvRgvFbl7O8eKIoQOascpWYcyP/7wylMSeV4hKIPhb0I5GRiNbU2I7Iiq7t3Gbotfb/yIlac6+Zr7cFbk8kRhlLq+0ToF0c3v8HJdwH81WeDaJL69apKBCOOQ4zbJAEcCCVR1By27PCHsXEHWIIuXz539e0Ai1ewM+jXvBmYh/WM15JvttG/tEdIWuoskPzRPwi8gQhhh24ic9GVf0J/gH1ATV6pA== Received: from [212.82.98.49] by nm33.bullet.mail.ir2.yahoo.com with NNFMP; 14 Oct 2016 08:58:55 -0000 Received: from [212.82.98.99] by tm2.bullet.mail.ir2.yahoo.com with NNFMP; 14 Oct 2016 08:58:55 -0000 Received: from [127.0.0.1] by omp1036.mail.ir2.yahoo.com with NNFMP; 14 Oct 2016 08:58:55 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 70965.58633.bm@omp1036.mail.ir2.yahoo.com X-YMail-OSG: e0gwZZ8VM1lvfALpO32AAfMHmxblPRhoOuuQEAa7xKo11g_wVyPPhDYxwxIPq_F 4NN6IK47ekblDxUvKjMQvH8cFV3TbElx5i9VgYb7hqiZElPy65ui5BTdLczMRzFLlJ5TLKjWK3Fn dDEFIc9n8xusfZ09xuQsbYjGFnjQlhvBqcpw8PAqoma7ljJNE.uM22OM1S5xTob_OOjfnB9aHr6o rx7vbelGlu5SGPs0u8VvzMF.WHryf_Wx0usnGnUtlPMCAgZ9e1UoPwR5Pz_3dWxQO99aVqz3NZXX cF6xgvbP4aTiphJPMWnnkIyFvEj_AKl1qCwMClrabhw39l4rEbSLuhOzqVjI91yXiUC6Ja38Zhkk pslIwyvha94ctNZipBJXlzve7MuZSgqY4eACNLemg5xdqnZPwnw1rbyup52SOV66ZO0fbdTb6Xzj EHMF_TBSSt5OHPClCxu0hfIJSOtO.VRLvQS5zEyDCHMFkFdp0W.MmdpCdA5TIequxg6aNk7R5stx inkfE1nkpCbiWEelo92Y- Received: from jws700014.mail.ir2.yahoo.com by sendmailws165.mail.ir2.yahoo.com; Fri, 14 Oct 2016 08:58:54 +0000; 1476435534.694 Date: Fri, 14 Oct 2016 08:58:50 +0000 (UTC) From: Tillmann Schulz Reply-To: Tillmann Schulz To: "pgsql-jdbc@postgresql.org" Message-ID: <63578883.319462.1476435530742@mail.yahoo.com> Subject: Re: Return Codes of BatchUpdateException in PostgreSql 9.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <63578883.319462.1476435530742.ref@mail.yahoo.com> Content-Length: 1609 X-Pg-Spam-Score: -1.5 (-) 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 Hello, I made some test with different driver versions. The result seems to be that it is an issue in the newer driver versions and not in the postgresql database Postgres 9.5.0 with postgresql-jdbc41-9.4-1201.jar contains only updateCounts of first succeeded statements. --------------------------------------------------------------------------------------------------------------- updateCounts[0]=1 updateCounts[1]=1 updateCounts[2]=1 updateCounts[3]=1 updateCounts[4]=1 -->correct Postgres 9.6.0 with postgresql-jdbc41-9.4-1201.jar contains only updateCounts of first succeeded statements. --------------------------------------------------------------------------------------------------------------- updateCounts[0]=1 updateCounts[1]=1 updateCounts[2]=1 updateCounts[3]=1 updateCounts[4]=1 -->correct but can't use this driver with postgressql 9.6 Postgres 9.6.0 with postgresql-jdbc41-9.4-1211.jar contains updateCounts of all elements. --------------------------------------------------------------------------------------------------------------- updateCounts[0]=-3 updateCounts[1]=-3 updateCounts[2]=-3 updateCounts[3]=-3 updateCounts[4]=-3 updateCounts[5]=-3 updateCounts[6]=-3 updateCounts[7]=-3 updateCounts[8]=-3 updateCounts[9]=-3 -->Wrong.updateCounts[0..4] and updateCounts[6..9] contains wrong information. > will need to set logLevel=2 How can I set the logLevel. Is it in postgresql.conf? Bye, Tillmann >Hi, >Can you check what is returned by the back end for 9.5 and 9.6. You >will need to set > >logLevel=2 > >That will help to narrow down the problem. > >Jeremy -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc