pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: A Mohan <abmohan75@rediffmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Create lo Data type
Date: Sat, 28 Jun 2003 12:06:10 -0400
Message-ID: <18213.1056816370@sss.pgh.pa.us> (raw)
In-Reply-To: <20030628105345.10601.qmail@webmail25.rediffmail.com>
References: <20030628105345.10601.qmail@webmail25.rediffmail.com>

"A  Mohan" <abmohan75@rediffmail.com> writes:
> To create lo type we gave the following SQL.
> CREATE TYPE lo (
>      internallength=4,  externallength=10,
>      input=int4in, output=int4out,
>      default='',  passedbyvalue
> );

> But we could not create this lo type.

You can't cheat like that anymore in defining a type.  You have to
provide real I/O functions for it.

A more appropriate way to define LO in 7.3 is as a domain:

	CREATE DOMAIN lo AS int4;

(although actually I'd think it should be a domain of OID not INT4).

			regards, tom lane



view thread (2+ messages)

Message-ID: <18213.1056816370@sss.pgh.pa.us>
Permalink:  ../18213.1056816370@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18213.1056816370@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, abmohan75@rediffmail.com
  Subject: Re: Create lo Data type
  In-Reply-To: <18213.1056816370@sss.pgh.pa.us>
  References: <20030628105345.10601.qmail@webmail25.rediffmail.com> <18213.1056816370@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox