Re: BLOB handling compatibility with PostgreSQL > 7.4 - Mailing list pgsql-odbc

From Marc Herbert
Subject Re: BLOB handling compatibility with PostgreSQL > 7.4
Date
Msg-id 87zmnah7km.fsf@meije.emic.fr
Whole thread Raw
In response to BLOB handling compatibility with PostgreSQL > 7.4  (Irina Sourikova <irina@bnl.gov>)
Responses Re: BLOB handling compatibility with PostgreSQL > 7.4
List pgsql-odbc
Peter Eisentraut <peter_e@gmx.net> writes:

> Marc Herbert wrote:
>> We are developping a middleware and are not free to choose our data
>> types.
>
> I was thinking the ODBC driver should provide the appropriate mapping.

We aim to be as transparent as possible and avoid "mappings".

 <http://www.continuent.org/>


>> As far as i know, the implementation of bytea and large objects in
>> the database are totally different and I suspect there are good
>> reasons to use either one of them, depending on the actual data and
>> application involved.
>
> There is no real reason to use large objects for anything instead of
> bytea.

<http://www.postgresql.org/docs/7.4/static/jdbc-binary-data.html>
<http://jdbc.postgresql.org/documentation/head/binary-data.html>

 PostgreSQL provides two distinct ways to store binary data. Binary
 data can be stored in a table using the data type bytea or by using
 the Large Object feature which stores the binary data in a separate
 table in a special format and refers to that table by storing a value
 of type oid in your table.
 In order to determine which method is appropriate you need to
 understand the limitations of each method....


Moreover, the respective interfaces have very different semantics
(pointer or not). This can be a reason in itself to prefer one or the
other type, whatever the underlying implementation is.



pgsql-odbc by date:

Previous
From: "Jim Dexter Iturralde"
Date:
Subject: Problem about adLockBatchOptimistic VB
Next
From: Ludek Finstrle
Date:
Subject: Re: Please review this patch