Re: Inconsistent: Getting array from result set - Mailing list pgsql-jdbc

From Craig Ringer
Subject Re: Inconsistent: Getting array from result set
Date
Msg-id 526DDA06.6010300@2ndquadrant.com
Whole thread Raw
In response to Inconsistent: Getting array from result set  (robrez <resendez.java@gmail.com>)
Responses Re: Inconsistent: Getting array from result set  (robrez <resendez.java@gmail.com>)
List pgsql-jdbc
On 10/25/2013 07:27 AM, robrez wrote:
> I am encountering inconsistent behavior when getting an array from a result
> set that was produced via a prepared statement.
>
> It seems that the first 5 times the result set is generated from a given
> statement, everything is good.
> Attempts 6-n do something strange.

By default, PgJDBC switches from client-side to server-side prepared
statements at five executions. So I'd say you're seeing an issue related
to that.

Try playing with the prepared statement threshold, see if the problem
behaviour changes along with the threshold. See the documentation for
details on that.


--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-jdbc by date:

Previous
From: robrez
Date:
Subject: Re: Inconsistent: Getting array from result set
Next
From: robrez
Date:
Subject: Re: Inconsistent: Getting array from result set