From: 姜梦洋 <minesunny@icloud.com>
To: pgsql-bugs@lists.postgresql.org
Subject: the same time value return different values,is it a problem
Date: Wed, 13 Sep 2023 15:24:14 +0800
Message-ID: <9831C223-91ED-43FC-8223-B90C46BA77C4@icloud.com> (raw)
I find the time type accuracy of the database. Using PreparedStatement, the accuracy found out for the sixth time is different from the first five times. This number is exactly the same as the threshold of the PreparedStatement. I can understand that the database can optimize PreparedStatements and reduce repeated parsing and other unnecessary operations. but I don’t quite understand how such processing will affect the execution results(Or maybe I don’t have a deep understanding of PreparedStatement.). now I run the code and get some results;
=
Attachments:1.jpeg (image/jpeg, 16.1K) downloadview image2.jpeg (image/jpeg, 16.4K) downloadview image3.jpeg (image/jpeg, 15.8K) downloadview image4.jpeg (image/jpeg, 15.5K) downloadview image5.jpeg (image/jpeg, 12.5K) downloadview image
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: minesunny@icloud.com
Subject: Re: the same time value return different values,is it a problem
In-Reply-To: <9831C223-91ED-43FC-8223-B90C46BA77C4@icloud.com>
References: <9831C223-91ED-43FC-8223-B90C46BA77C4@icloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox