Received: from noao.edu (root@noao.edu [140.252.1.54]) by hub.org (8.10.1/8.10.1) with ESMTP id e9BIRqr83421 for ; Wed, 11 Oct 2000 14:27:52 -0400 (EDT) Received: from reynaud.tuc.noao.edu (reynaud.tuc.noao.edu [140.252.38.6]) by noao.edu (8.9.3/8.8.8/SAG-27Sep99) with ESMTP id LAA39048; Wed, 11 Oct 2000 11:27:43 -0700 (MST) (envelope-from swampler@noao.edu) Received: from noao.edu by reynaud.tuc.noao.edu (8.9.1b+Sun/SMI-SVR4-SAG05) id LAA02413; Wed, 11 Oct 2000 11:27:40 -0700 (MST) Message-ID: <39E4B11C.204A69A3@noao.edu> Date: Wed, 11 Oct 2000 11:27:40 -0700 From: Steve Wampler Organization: National Solar Observatory X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Peter Mount CC: Joseph Shraibman , "pgsql-interfaces@postgreSQL.org" Subject: Re: JDBC Large ResultSet problem + BadTimeStamp Patch References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/94 X-Sequence-Number: 1451 Peter Mount wrote: ... > Yes, there is a problem with multiple statements and transactions on the > same connection when it comes to thread safety. > > The problem as I see it is two fold. > > 1: How to deal with two statements within one transaction. Related to this > is the metadata methods that issue queries, how to deal with them while > within a transaction. > > 2: Currently the JDBC Specs only have transactions supported at the > Connection level, so I can't see how they thought that Statements could > possibly run within their own transactions, unless they thought that a > workaround of this is the use of batches. Ah, that probably explains why I've seen "tuple arrived before metadata" messages when I've got several apps talking through CORBA to a java app that connects to postgres. Do I need to synchronize both inserts and queries at the java app level to prevent this? (I was hoping that the BEGIN/END block in a transaction would be sufficient, but this makes it sound as though it isn't.) -- Steve Wampler- SOLIS Project, National Solar Observatory swampler@noao.edu