X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 5304CD1B8D4 for ; Tue, 19 Aug 2003 07:45:48 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 17425-09 for ; Tue, 19 Aug 2003 07:45:40 -0300 (ADT) Received: from rigel.pucrs.br (rigel.pucrs.br [200.132.10.13]) by svr1.postgresql.org (Postfix) with ESMTP id A16F8D1B89A for ; Tue, 19 Aug 2003 07:45:36 -0300 (ADT) Received: (from root@localhost) by rigel.pucrs.br (8.12.9/8.12.9) id h7JAbITn034514 for pgsql-odbc@postgresql.org; Tue, 19 Aug 2003 07:37:18 -0300 (EST) Received: from 200.132.57.38 ([200.132.57.38]) by rigel.pucrs.br (8.12.9/8.12.9) with ESMTP id h7JAbHDa034507 for ; Tue, 19 Aug 2003 07:37:17 -0300 (EST) From: Andre Felipe Machado To: pgsql-odbc@postgresql.org Subject: Re: large objects and pg 7.3.x Date: Tue, 19 Aug 2003 07:45:08 -0300 User-Agent: KMail/1.5.2 References: <200308182131.18596.andremachado@techforce.com.br> <18773.1061256162@sss.pgh.pa.us> In-Reply-To: <18773.1061256162@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308190745.10820.andremachado@techforce.com.br> X-Virus-Scanned: by AMaViS perl-11 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/37 X-Sequence-Number: 3157 Hello, Many thanks for your answer. > > I think this is just a matter of obsolete documentation --- if you can > point to where it still says to use a CREATE TYPE hack, we can fix it. http://gborg.postgresql.org/project/psqlodbc/faq/faq.php?faq_id=52 > The easy way to define "lo" now is just as a domain over oid: > CREATE DOMAIN lo AS oid; I already tested this idea before contacting the list. Unfortunately it does not work also. At least from OpenOffice 1.1rc2 connected by psqlodbc or unixodbc. Also without success, tested the idea from Hiroshi Saito (http://archives.postgresql.org/pgadmin-hackers/2003-06/msg00359.php ) Both suggestions did not work. Using postgresql-contrib "lo", I was able to insert and extract images using sql commands from inside psql. When inserted this way, psqlodbc can DISPLAY images at OpenOffice.org forms. But can not insert new ones. > > However, if you want the cleanup semantics that the contrib package > offers, by all means use it instead. I don't believe ODBC should care > which way you've defined "lo". > > regards, tom lane Please, could you give some guidance, or point to some psqlodbc devel documentation in order to modify the code? I have very limited desktop programming coding skill , but will try to get it working, without disrupting whole code. The contrib lo cleanup code seems to be context sensitive, adapting to the variable details. The contrib lo definition does not use "passedbyvalue", but use a pointer instead. It uses variable length output too. Regards. Andre Felipe