Re: the same time value return different values,is it a problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: the same time value return different values,is it a problem
Дата
Msg-id 2961695.1694614648@sss.pgh.pa.us
обсуждение исходный текст
Ответ на the same time value return different values,is it a problem  (姜梦洋 <minesunny@icloud.com>)
Ответы Re: the same time value return different values,is it a problem  (Dave Cramer <davecramer@postgres.rocks>)
Список pgsql-bugs
=?utf-8?B?5aec5qKm5rSL?= <minesunny@icloud.com> writes:
>     I find the time type accuracy of the database. Using PreparedStatement, the accuracy found out for the sixth time
isdifferent from the first five times. This number is exactly the same as the threshold of the PreparedStatement. I can
understandthat 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
deepunderstanding of PreparedStatement.). 

If you're using JDBC, this is probably the same effect discussed at

https://www.postgresql.org/message-id/flat/CAKyg5Sj%3D85niw8%3DZhX-quHaCQTPhG40REi1s%2BHYF6Snz4Dfi7Q%40mail.gmail.com

It's got something to do with retrieving the query results in binary
mode instead of text.  The query result at the server is the same,
but the JDBC driver is rendering it differently.

            regards, tom lane



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Memory leak on subquery as scalar operand
Следующее
От: Gokul Krishnan
Дата:
Сообщение: Re: BUG #18098: Console code page issue Postgresql 14.7