X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EB9F6474E53; Tue, 4 Feb 2003 07:28:32 -0500 (EST) Received: from ny-bas06.csfb.com (ny-bas06.csfb.com [198.240.130.90]) by postgresql.org (Postfix) with ESMTP id 7C8D3474E44; Tue, 4 Feb 2003 07:28:32 -0500 (EST) X-Server-Uuid: a46faee8-2a4f-11d3-9c63-00508b4fa69c X-Server-Uuid: 8e2ee05e-e4bb-11d3-929c-00508b6fed5f Subject: Large objects - SOS To: pgsql-admin@postgresql.org, pgsql-novice@postgresql.org, pgsql-general@postgresql.org Message-ID: From: mjoseph@inautix.com Date: Tue, 4 Feb 2003 17:52:58 +0530 X-MIMETrack: Serialize by Router on INACENTPLN01/iNautix(Release 5.0.8 |June 18, 2001) at 02/04/2003 05:42:50 PM MIME-Version: 1.0 X-WSS-ID: 12216E6C562716-01-01 X-WSS-ID: 12216E63640777-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/53 X-Sequence-Number: 7251 Hi, I need to create a large object - a photograph and work with it. I would be using ODBC (application on Windows NT , db server on Linux) The doc at http://gborg.postgresql.org/project/psqlodbc/faq/faq.php?faq_id=52 suggests creating a custom type like this. create type lo ( internallength=4, externallength=10, input=int4in, output=int4out, default='', passedbyvalue ); I need to define the input & output functions (int4in and int4out). Can someone give me a clue as to how these functions should be defined? Some sample code would really help me. Regards, Manoj