Issue 18344 - postresql native driver : blobs (large objects) the easy way
Summary: postresql native driver : blobs (large objects) the easy way
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC2
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: joergbudi
QA Contact: issues@dba
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-18 12:30 UTC by andremachado
Modified: 2008-07-20 12:06 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description andremachado 2003-08-18 12:30:38 UTC
Hello,
I am not sure this is the right methodo of suggesting features to the new 
postgresql native driver. Please, if not, foward to the right people.
I am struggling to use OpenOffice to deal with images on forms with postgresql 
backend through ODBC.
The postgresql driver needs a new type , "lo", to work.
In the new pg 7.3.x versions, the odbc team hint does not work anymore.
Meanwhile, the postgresql-contrib package contains a "semi-official" large 
object "lo" implementation. It is elegant and solve the problem of orphaned 
files when an OID is deleted with a new type.
I already tested this contrib using direct sql commands to insert and extract 
images into a postgresql database.
OpenOffice can DISPLAY a previously inserted image on forms.
But can not insert a new one.
The postgresql-contrib "lo" implementation is a almost new "full" data type, 
using oid as references/pointers , allowing more easy driver implementation.
Please, take a look at the postgresql-contrib "lo" code.
It will make implementing blobs (large objects) much more easy.
Regards.
Andre Felipe
Comment 1 Frank Schönheit 2003-08-18 12:54:13 UTC
fs->jbu: sounds as if you should decide about this :)
Comment 2 hans_werner67 2004-02-02 12:50:01 UTC
change subcomponent to 'none'
Comment 3 Mechtilde 2008-05-20 15:19:21 UTC
add to CC
Comment 4 p9w.vu.31122010 2008-05-20 16:00:51 UTC
The PostgreSQL 8.2.0 documentation says that there is a "bytea" datatype that is
used for implementing the capability of storing binary-only data.

@andremachado: Does this data type satisfy your needs?

In this context I encountered another problem, created follow-up issue 89685.
Comment 5 andremachado 2008-05-20 20:02:53 UTC
Hello,
I will have to test against new postgresql versions.
The "ea" data type can be used given a limitation at size.
It is not a full blob solution, but works for many situations.
Thanks!
Andre Felipe
Comment 6 Mechtilde 2008-06-13 19:01:24 UTC
is it right to set this issue to worksforme?
Comment 7 Mechtilde 2008-07-19 19:21:33 UTC
or can we close it?
Comment 8 p9w.vu.31122010 2008-07-20 12:06:08 UTC
I think we can close this one since basic blob functionality is given.
Comment 9 p9w.vu.31122010 2008-07-20 12:06:37 UTC
closing