Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXXOg-00012C-Rp for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Aug 2016 17:34:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bXXOg-0002DO-9j for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Aug 2016 17:34:30 +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 1bXViG-0003G5-II for pgsql-bugs@postgresql.org; Wed, 10 Aug 2016 15:46:36 +0000 Received: from mail.inthergroup.com ([87.237.28.87]) by magus.postgresql.org with esmtps (TLS1.1:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bXViC-0007Uu-KO for pgsql-bugs@postgresql.org; Wed, 10 Aug 2016 15:46:35 +0000 X-Kerio-Anti-Spam: Build: [Engines: 2.15.7.1025, Stamp: 3], Multi: [Enabled, t: (0.006330,0.006319)], BW: [Enabled, t: (0.000014)], RTDA: [Enabled, t: (0.078611), Hit: No, Details: v2.3.11; Id: 2m1gj0o.1apqbvrai.4tgs], total: 0(700) X-Spam-Status: No, hits=0.0 required=2.5 tests=KERIO_ANTI_SPAM: -2.000, HTML_MESSAGE: 0.001, TOTAL_SCORE: -1.999,autolearn=disabled X-Spam-Level: X-Footer: aW50aGVyZ3JvdXAuY29t Received: from localhost ([127.0.0.1]) by mail.inthergroup.com with ESMTPSA for pgsql-bugs@postgresql.org; Wed, 10 Aug 2016 17:46:28 +0200 Date: Wed, 10 Aug 2016 18:46:29 +0300 Subject: Bug fetching Timestamps in JDBC driver 9.4.1209 Importance: Normal X-Priority: 3 Thread-Index: AdHzHGUF/yioXy6cSdCBjQukzyQqTA== Message-ID: <00112c49-5ab2-412d-ade5-8bf5c04df99c@inthergroup.com> X-Mailer: Kerio Outlook Connector (Offline Edition) (8.5.3.5082 T0) From: Dumitru Boldureanu To: pgsql-bugs@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-9jzLqZPKs5fL5qj9wg59" X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --=-9jzLqZPKs5fL5qj9wg59 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable We noticed, what seems to be a bug in JDBC driver 9.4.1209. The bug was detected in an application that is testing database migration s= cripts. The application is comparing through JDBC the data before and after= the execution of the migration scripts. =20 We noticed that for timestamp columns we were getting changes, which do not= actually exist. And these changes are not static, the records and tables in which we get th= em are random. We=E2=80=99ve fought a lot with this issue, checked for unclosed connection= s, results sets, etc. The solution was to replace the JDBC driver 9.4.1209 with 9.4-1201, and the= random timestamps values disappeared.=20 =20 Noticed in the release of 9.4.1209, mentioned: * Performance optimization f= or timestamps (~TimeZone.getDefault optimization) Maybe it added a bug? Tried to google and found no one complaining on this = issue. =20 Kind regards / Mit freundlichen Gr=C3=BC=C3=9Fen / Met vriendelijke groeten= / Cu respect / =E9=A1=BA=E7=A5=9D=E5=95=86=E7=A5=BA, Dumitru Boldureanu= --=-9jzLqZPKs5fL5qj9wg59 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

We noticed, what= seems to be a bug in JDBC driver 9.4.1209.

The bug was detected in = an application that is testing database migration scripts. The application = is comparing through JDBC the data before and after the execution of the mi= gration scripts.

 

We noticed that for timestamp columns we were getting ch= anges, which do not actually exist.

And = these changes are not static, the records and tables in which we get them a= re random.

We=E2=80=99ve fought a lot with this issue, checked for u= nclosed connections, results sets, etc.
The solution was to replace the = JDBC driver 9.4.1209 with 9.4-1201, and the random timestamps values disapp= eared.

 

Noticed in the release of 9.4.1209, mentioned: * Performance opti= mization for timestamps (~TimeZone.getDefault optimization)

<= p class=3DMsoNormal>Maybe it added a bug? Tried to google and found no one = complaining on this issue.

 

Kind regards / Mit freundlichen Gr=C3=BC=C3=9Fen / Met vriendelij= ke groeten / Cu respect / =E9=A1=BA=E7=A5=9D=E5=95= =86=E7=A5=BA= ,=

Dumitru Boldureanu

 =

= --=-9jzLqZPKs5fL5qj9wg59--