Skip site navigation (1) Skip section navigation (2)

userdefined types

From: Assad Jarrahian <jarraa(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: userdefined types
Date: 2006-01-09 06:21:16
Message-ID: 4bd3e1480601082221n1e0e73e1ta5f3d991ef1c643f@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-general
Hello,
  So I have been reading over the web and it seems that one must
define two methods before declaring a type. But I seem to have done it
(CREATE  TYPE) without creating any functions and it did not give me
an error. I tried to use

INSERT TABLENAME SET user-defined-column = ROW('val1' ,'va2' ...);

and it works. The only problem is when I have ROW( , ,
'values','morevalues', ,'evenmorevalues');

it does not like the commas one after the other (empty value) .... how
do I solve that .... or does this have something to do with those two
methods (in and out) that I overlooked.

any insight would be much appreciated.

-assad

Responses

pgsql-general by date

Next:From: Marc G. FournierDate: 2006-01-09 06:33:40
Subject: CRITICAL RELEASE: Minor Releases to Fix DoS Vulnerability
Previous:From: Benjamin StookeyDate: 2006-01-09 04:18:31
Subject: Re: Functions as a Security Layer

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group