From: Marc Herbert <Marc.Herbert@emicnetworks.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: getObject(<oid>) returns integer instead of LargeObject
Date: Tue, 26 Jul 2005 12:20:09 +0200
Message-ID: <20050726102009.GB17905@emicnetworks.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0507221340260.3242@leary.csoft.net>
References: <20050722135640.GM7394@emicnetworks.com>
<Pine.BSO.4.56.0507221340260.3242@leary.csoft.net>
On Fri, Jul 22, 2005 at 01:41:19PM -0500, Kris Jurka wrote:
>
>
> On Fri, 22 Jul 2005, Marc Herbert wrote:
>
> > Is there some good reason for getObject(<some oid column>) to return the
> > bare oid integer instead of the actual LargeObject handle ?
>
> This makes the assumption that the only use of oids is for large objects.
> What if someone wrote SELECT oid,relname FROM pg_class?
Thanks for answering.
What would you recommend to unambiguously identify a Blob column in a
arbitrary ResultSet, using only JDBC?
For instance could you trust
Types.BLOB == rs.getMetaData.getColumnType() in every case?
Is there any other way?
Would it depend on the latest version of the driver/database?
Thanks in advance for you help!
PS: why do LOBs seem to use regular oids instead of some other less
ambiguous say, "loid" ?
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: Marc.Herbert@emicnetworks.com
Subject: Re: getObject(<oid>) returns integer instead of LargeObject
In-Reply-To: <20050726102009.GB17905@emicnetworks.com>
References: <20050722135640.GM7394@emicnetworks.com> <Pine.BSO.4.56.0507221340260.3242@leary.csoft.net> <20050726102009.GB17905@emicnetworks.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