From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problems with protocol V3 after migration to latest driver
Date: Tue, 26 Oct 2004 11:50:55 +1300
Message-ID: <417D834F.40203@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0410251601030.26148@leary.csoft.net>
References: <8BCBF9DB739F034B87FE7C7D30EAE55C026AC203@hqex2k.francoudi.com>
<Pine.BSO.4.56.0410250254430.5934@leary.csoft.net>
<417CC468.7030704@opencloud.com>
<Pine.BSO.4.56.0410251601030.26148@leary.csoft.net>
Kris Jurka wrote:
>
> On Mon, 25 Oct 2004, Oliver Jowett wrote:
>
>
>>Sounds like that is (another) bug .. it should be using the
>>QUERY_SUPPRESS_BEGIN flag for driver-generated queries to avoid starting
>>a transaction accidentally. I fixed that in various other places but
>>didn't think to check the LO code.
>
>
> This might be a little tricky as the large object code uses just the
> public java.sql.* api. This situation is somewhat analogous to the
> DatabaseMetaData calls that we decided should start transactions. In any
> case I'm not sure it really matters. The only time the largeobject api
> is initialized when a query won't immediately follow is if they are using
> the LargeObjectManeger directly and not through the compatible=7.1 or
> getBlob.
I'm not entirely convinced.
The DBMD queries are a direct result of an application call. It's
reasonable to expect transactional isolation of metadata since you might
be executing DDL that affects that metadata. We don't cache the results.
In contrast, the LO stuff is one-off lazy initialization that is a
side-effect of using the LO interface for the first time. The results
are cached. We don't care about transactional isolation of the queries
(or cache invalidation) as we are not expecting the LO function
definitions to change under us. It seems like the same scenario as when
we are filling the datatype<->OID caches in the main driver.
That said, as you say it only makes a difference if you're using the LO
manager directly, so maybe this isn't so important.
-O
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: oliver@opencloud.com, books@ejurka.com
Subject: Re: Problems with protocol V3 after migration to latest driver
In-Reply-To: <417D834F.40203@opencloud.com>
References: <8BCBF9DB739F034B87FE7C7D30EAE55C026AC203@hqex2k.francoudi.com> <Pine.BSO.4.56.0410250254430.5934@leary.csoft.net> <417CC468.7030704@opencloud.com> <Pine.BSO.4.56.0410251601030.26148@leary.csoft.net> <417D834F.40203@opencloud.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