Large objects - SOS

From: mjoseph(at)inautix(dot)com
To: pgsql-admin(at)postgresql(dot)org, pgsql-novice(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Large objects - SOS
Date: 2003-02-04 12:22:58
Message-ID: OF0B8A93EA.20F6C498-ON65256CC3.0043C73A@LocalDomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-novice

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jules Alberts 2003-02-04 12:36:47 7.3.1 update gives PHP libpq.so.2 problem
Previous Message Gaetano Mendola 2003-02-04 11:21:44 ERROR: Parent tuple was not found

Browse pgsql-general by date

  From Date Subject
Next Message Nigel J. Andrews 2003-02-04 12:53:34 Re: Large objects - SOS
Previous Message Cleiton Luiz Siqueira 2003-02-04 12:08:50 Re: Kernel Error

Browse pgsql-novice by date

  From Date Subject
Next Message Nigel J. Andrews 2003-02-04 12:53:34 Re: Large objects - SOS
Previous Message Adam Witney 2003-02-04 10:42:52 Re: Mac OsX