No you can run multiple threads, as long as it is one statement per thread.
My thinking at the time was that your code may not have been running one
statement per thread, or that the locking on PG_Stream wasn't working
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council.
From: Joseph Shraibman [mailto:jks(at)selectacast(dot)net]
Sent: Friday, May 26, 2000 8:11 PM
To: Peter Mount
Cc: 'Gunnar R|nning'; pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] JDBC for 7.0 - Tuple received before MetaData
Peter Mount wrote:
> Not sure, but the only way this could happen is what it states: It's
> getting tuples before it's expecting to get them.
> Are you running multiple threads on the same connection?
You mean you can't do that? I thought you couldn't on the same
Statement. My code creates one connection object and gets a statement
from it for each thread.
pgsql-interfaces by date
|Next:||From: Peter Mount||Date: 2000-05-30 07:24:10|
|Subject: RE: jdbc driver: Why it isn't jdbcCompliant?|
|Previous:||From: Peter Mount||Date: 2000-05-30 06:46:28|
|Subject: RE: Postgresql 7.0 JDBC exceptions - broken connections ?|