Re: [HACKERS] PostgreSQL 7.3: help on new CREATE TYPE

2002-09-23 Thread elein
Illustra did a very nice job with "composite types" which correspond to these record types. The composite types were able to be used as a column type as jerome describes. The subcolumns were accessed with dots. This gave us schema.table.column.attribute where of course attribute could i

Re: [HACKERS] PostgreSQL 7.3: help on new CREATE TYPE

2002-09-17 Thread Christopher Kings-Lynne
> When I say that the second form of CREATE TYPE allow you to make > RECORD type > like RECORD, i don't want to speak about the record in PlPgsql but RECORD > from programming language like ADA or C (typedef struct). > > So the real question is: > Can I use this new type like other user-type ? > C

Re: [HACKERS] PostgreSQL 7.3: help on new CREATE TYPE

2002-09-17 Thread Jerome Chochon
CTED]> To: "Jerome Chochon" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, September 17, 2002 11:25 AM Subject: RE: [HACKERS] PostgreSQL 7.3: help on new CREATE TYPE > Hi Jerome, > > The RECORD type is use

Re: [HACKERS] PostgreSQL 7.3: help on new CREATE TYPE

2002-09-17 Thread Christopher Kings-Lynne
Hi Jerome, The RECORD type is used for writing stored procedures and functions that return sets. eg. CREATE FUNCTION foo() RETURNS setof adress AS '...'; Sort of thing... Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jerome Chochon Sent: Tuesd