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 12A67D1B957 for ; Tue, 19 Aug 2003 20:26:15 -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 11355-05 for ; Tue, 19 Aug 2003 20:26:07 -0300 (ADT) Received: from m3-cluster1.vcn.com (m3-cluster1.vcn.com [209.193.72.33]) by svr1.postgresql.org (Postfix) with ESMTP id BC81CD1BB52 for ; Tue, 19 Aug 2003 20:26:03 -0300 (ADT) Received: from sweetbeet2k (unverified [209.193.70.230]) by m3-cluster1.vcn.com (Vircom SMTPRS 5.3.232) with ESMTP id ; Tue, 19 Aug 2003 17:25:51 -0600 Message-ID: <018701c366a9$3aea84e0$a1d2a8c0@impsu.net> From: "Julie May" To: "Andre Felipe Machado" , References: <00ea01c36661$ffa944d0$3d283ddb@PbgX> <200308191216.02961.andremachado@techforce.com.br> Subject: Re: large objects and pg 7.3.x Date: Tue, 19 Aug 2003 17:25:51 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/41 X-Sequence-Number: 3161 I am able to insert an image into postgresql using the psqlodbc driver. I created the lo type using the files in the contrib directory. I was never able to make the lo_manage() function work. Instead I created my own functions and used triggers to execute them. I only needed the functions for deleting and updating records. I haven't had any problems inserting. When the lo type was created it should have created the following functions : lo(oid) lo_in(cstring) lo_manage() lo_oid(public.lo) lo_out(public.lo) oid(public.lo) I hope that is somewhat helpfull. Julie ----- Original Message ----- From: "Andre Felipe Machado" > The postgresql psql tool can insert an image (can also extracts it) using > direct sql commands. And OpenOffice can display it at the form. > When trying to save a new record, containing a new image, the program > complains. > The error message is reproduced at near the end of the attached sql log file. > I hope this help. > Regards. > Andre Felipe