X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id A42DB3104E5 for ; Sat, 28 Jun 2003 16:06:21 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 26075-06 for ; Sat, 28 Jun 2003 13:06:11 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id EC83F3104B5 for ; Sat, 28 Jun 2003 13:06:10 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h5SG6AQQ018214; Sat, 28 Jun 2003 12:06:10 -0400 (EDT) To: "A Mohan" Cc: pgsql-odbc@postgresql.org Subject: Re: Create lo Data type In-reply-to: <20030628105345.10601.qmail@webmail25.rediffmail.com> References: <20030628105345.10601.qmail@webmail25.rediffmail.com> Comments: In-reply-to "A Mohan" message dated "28 Jun 2003 10:53:45 -0000" Date: Sat, 28 Jun 2003 12:06:10 -0400 Message-ID: <18213.1056816370@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/78 X-Sequence-Number: 3052 "A Mohan" 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