pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedPGobject returned from ResultSet.getObject
3+ messages / 2 participants
[nested] [flat]
* PGobject returned from ResultSet.getObject
@ 2006-02-08 21:48 Kevin Grittner <Kevin.Grittner@wicourts.gov>
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Grittner @ 2006-02-08 21:48 UTC (permalink / raw)
To: pgsql-jdbc
Attached is a code snippet and the problems from running about 390,000
queries overnight. This has been happening for us, at low volume, since
we started using PostgreSQL -- initially with the jars that were release
in conjunction with 8.0. It has happened with the jars released in
conjunction with 8.1. This latest listing is from a JDBC driver built
off the trunk as of Jan. 13th.
Athena and Plato are two identical PostgreSQL 8.1.2 databases, which
are the targets of identical updates. In the process generating these
problems, the same SELECT queries were run against both databases at the
same time. While they both had some of these problems (on the order of
0.001% of the queries run), they did not occur on the SAME queries. All
columns are defined with either a normal ANSI data type or a DOMAIN
which maps to a normal ANSI data type.
This smells like a race condition of some sort, but I'm not sure how.
Any ideas on where to look or what we could programatically check for
when we see one of these? I'm casting about for ideas which would avoid
turning on debug logging in the JDBC driver, although I suspect that may
be what we wind up having to do.
-Kevin
Attachments:
PGobject-problems.txt (application/octet-stream, 8.8K) download
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PGobject returned from ResultSet.getObject
@ 2006-02-09 01:15 Dave Cramer <pg@fastcrypt.com>
parent: Kevin Grittner <Kevin.Grittner@wicourts.gov>
0 siblings, 1 reply; 3+ messages in thread
From: Dave Cramer @ 2006-02-09 01:15 UTC (permalink / raw)
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>; +Cc: pgsql-jdbc
Kevin,
Can you give us more information. Is this using a pool, threads?
Basically the type information comes back in the protocol, so it
would appear that is getting scribbled on.
It would be interesting to see if the rest of the fields are still
good after the bad one?
Dave
On 8-Feb-06, at 4:48 PM, Kevin Grittner wrote:
> Attached is a code snippet and the problems from running about 390,000
> queries overnight. This has been happening for us, at low volume,
> since
> we started using PostgreSQL -- initially with the jars that were
> release
> in conjunction with 8.0. It has happened with the jars released in
> conjunction with 8.1. This latest listing is from a JDBC driver built
> off the trunk as of Jan. 13th.
>
> Athena and Plato are two identical PostgreSQL 8.1.2 databases, which
> are the targets of identical updates. In the process generating these
> problems, the same SELECT queries were run against both databases
> at the
> same time. While they both had some of these problems (on the
> order of
> 0.001% of the queries run), they did not occur on the SAME
> queries. All
> columns are defined with either a normal ANSI data type or a DOMAIN
> which maps to a normal ANSI data type.
>
> This smells like a race condition of some sort, but I'm not sure how.
> Any ideas on where to look or what we could programatically check for
> when we see one of these? I'm casting about for ideas which would
> avoid
> turning on debug logging in the JDBC driver, although I suspect
> that may
> be what we wind up having to do.
>
> -Kevin
>
>
> <PGobject-problems.txt>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PGobject returned from ResultSet.getObject
@ 2006-02-09 16:21 Kevin Grittner <Kevin.Grittner@wicourts.gov>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Grittner @ 2006-02-09 16:21 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-jdbc
>>> On Wed, Feb 8, 2006 at 7:15 pm, in message
<A74BA11E-BC48-43E4-B5FD-7835C26217D0@fastcrypt.com>, Dave Cramer
<pg@fastcrypt.com> wrote:
>
> Can you give us more information. Is this using a pool, threads?
We have a set of worker threads dealing with requests from a queue,
with one JDBC connection per thread. The only time a separate thread
invokes any methods on the JDBC objects is the occasional
Statement.cancel().
> It would be interesting to see if the rest of the fields are still
> good after the bad one?
I assume that this is the same issue addressed by the patch posted this
morning by Till Toenges. (
http://archives.postgresql.org/pgsql-jdbc/2006-02/msg00066.php ) Is
there still any need to try to get this information about subsequent
columns?
-Kevin
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-02-09 16:21 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-08 21:48 PGobject returned from ResultSet.getObject Kevin Grittner <Kevin.Grittner@wicourts.gov>
2006-02-09 01:15 ` Dave Cramer <pg@fastcrypt.com>
2006-02-09 16:21 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
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