From: Andre Felipe Machado <andremachado@techforce.com.br>
To: pgsql-odbc <pgsql-odbc@postgresql.org>
Subject: Re: BLOB issue(s) & questions
Date: Sun, 16 May 2004 09:45:01 -0300
Message-ID: <200405160945.01579.andremachado@techforce.com.br> (raw)
In-Reply-To: <03AF4E498C591348A42FC93DEA9661B889F26A@mail.vale-housing.co.uk>
References: <03AF4E498C591348A42FC93DEA9661B889F26A@mail.vale-housing.co.uk>
> There are three options:
>
> 1) Use a bytea column. You might create a domain as an 'lo' alias to
> bytea if required.
This works. And very easy.
But for files upt to around 2 MB. Beware.
> 2) Use the /contrib/lo code. This custom datatype allows you to create a
> cleanup trigger for each lo column.
This works.
but not easy with odbc and other apps...
>
> 3) Use the 'simple' ODBC lo option documented at:
> http://gborg.postgresql.org/project/psqlodbc/faq/faq.php?faq_id=52 -
> Please note that I haven't tried using blobs in years...
>
> Regards, Dave.
Solution 3 does not work for Postgresql since 7.x, as I can remember. For
7.3.x is sure (I tried).
The innards of Pg changed a lot and it does not allow the tricks cited.
Use the solution 2, instead, for very large objects over 2MB.
good luck.
Andre Felipe
http://www.andrefelipemachado.hpg.ig.com.br/linux/index.html
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-odbc@postgresql.org
Cc: andremachado@techforce.com.br
Subject: Re: BLOB issue(s) & questions
In-Reply-To: <200405160945.01579.andremachado@techforce.com.br>
References: <03AF4E498C591348A42FC93DEA9661B889F26A@mail.vale-housing.co.uk> <200405160945.01579.andremachado@techforce.com.br>
* 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