pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Blakely, Jerel \(Mission Systems\) <Jerel.Blakely@ngc.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problem with jdbc connection behavior
Date: Wed, 14 Feb 2007 21:07:58 +0000
Message-ID: <45D37A2E.9060703@enterprisedb.com> (raw)
In-Reply-To: <E81F32D30475E341A3DBEEEA7CB6691CB0A406@xmbco501.northgrum.com>
References: <E81F32D30475E341A3DBEEEA7CB6691CB0A406@xmbco501.northgrum.com>

Blakely, Jerel (Mission Systems) wrote:
> The testcase code currently looks like this, I have tried rollback
> already. Since commits happen after each item it didn't change anything.
> ...

Hmm. I can't see any apparent reason why that wouldn't work. I'd suggest 
setting these parameters in the server's postgresql.conf file to log all 
the connections and statements and commits:

log_connections = on
log_disconnections = on
log_statement = 'all'

I'm thinking there's something in your environment inhibiting commits or 
or something like that.

> Since my other post I now have noticed a problem with the drop table
> never returning. 
> It is a simple: stmt.executeUpdate("DROP TABLE TEMP_TABLE");

Can you elaborate? Are you executing the drop table while the test case 
is running, or is it just generally not returning?

> I have verified these test cases against Firebird, Sybase, and Oracle
> with no problems, I am beginning to think my Postgres install is cursed.

Yeah, I hate it when that happens ;).

Something you should be aware of is that unlike in most other DBMSs, DDL 
statements like CREATE/DROP TABLE are transactional in PostgreSQL. If 
you CREATE TABLE in one connection, it's not visible to others until commit.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com



view thread (5+ messages)  latest in thread

Message-ID: <45D37A2E.9060703@enterprisedb.com>
Permalink:  ../45D37A2E.9060703@enterprisedb.com/
Also on:    postgresql.org/message-id/45D37A2E.9060703@enterprisedb.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: heikki@enterprisedb.com, Jerel.Blakely@ngc.com
  Subject: Re: Problem with jdbc connection behavior
  In-Reply-To: <45D37A2E.9060703@enterprisedb.com>
  References: <E81F32D30475E341A3DBEEEA7CB6691CB0A406@xmbco501.northgrum.com> <45D37A2E.9060703@enterprisedb.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