pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PGobject returned from ResultSet.getObject
Date: Wed, 8 Feb 2006 20:15:11 -0500
Message-ID: <A74BA11E-BC48-43E4-B5FD-7835C26217D0@fastcrypt.com> (raw)
In-Reply-To: <43EA12E5.EE98.0025.0@wicourts.gov>
References: <43EA12E5.EE98.0025.0@wicourts.gov>

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




view thread (3+ messages)  latest in thread

Message-ID: <A74BA11E-BC48-43E4-B5FD-7835C26217D0@fastcrypt.com>
Permalink:  ../A74BA11E-BC48-43E4-B5FD-7835C26217D0@fastcrypt.com/
Also on:    postgresql.org/message-id/A74BA11E-BC48-43E4-B5FD-7835C26217D0@fastcrypt.com

 · 

reply

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-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, Kevin.Grittner@wicourts.gov
  Subject: Re: PGobject returned from ResultSet.getObject
  In-Reply-To: <A74BA11E-BC48-43E4-B5FD-7835C26217D0@fastcrypt.com>
  References: <43EA12E5.EE98.0025.0@wicourts.gov> <A74BA11E-BC48-43E4-B5FD-7835C26217D0@fastcrypt.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