Re: Postgres jdbc driver inconsistent behaviour with double precession

From: Rahul Uniyal <rahul(dot)uniyal00(at)gmail(dot)com>
To: Dave Cramer <davecramer(at)postgres(dot)rocks>
Cc: PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: Postgres jdbc driver inconsistent behaviour with double precession
Date: 2024-03-19 18:15:24
Message-ID: EC7A6E43-094E-4801-9C85-A9E721A63497@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thanks Dave for the much needed help. Thank you so much .

I am using binaryTransferDisable=FLOAT8 to resolve this problem.

Thanks 

Rahul 


On 19-Mar-2024, at 5:09 PM, Dave Cramer <davecramer(at)postgres(dot)rocks> wrote:










On Tue, 19 Mar 2024 at 06:55, Rahul Uniyal <rahul(dot)uniyal00(at)gmail(dot)com> wrote:





Thanks Dave for this much needed information.




I checked with by giving prepareThreshold = 0 it is working as expected . 




Also I tried another solution which is also working . 




I am setting binaryTransferDisable=FLOAT8 in the connection url and this seems also working fine . 




Is this approach is also recommended? 






This might be better as it will retain the prepared statement behaviour for all the other types.


P.S. please reply all so that others see the answers.




Dave 






Thanks ,


Rahul 



On 19-Mar-2024, at 3:22 PM, Dave Cramer <davecramer(at)postgres(dot)rocks> wrote:










On Mon, 18 Mar 2024 at 23:11, Rahul Uniyal <rahul(dot)uniyal00(at)gmail(dot)com> wrote:





Thanks Dave,




1- Is there any performance impact with this change ? As we have lot of double precession fields.






Well the reason we do it is for performance. It saves a round trip, but it costs one to get the info we need. So all in all it has minimal impact on pefrormance 






2- This prepareThreshold=0 property should be pass through connection url ? 






Yes




Dave
















In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2024-03-19 20:50:59 BUG #18401: Cannot install
Previous Message Masahiko Sawada 2024-03-19 16:42:15 Re: Potential data loss due to race condition during logical replication slot creation