Thread: use of a composite type in CREATE TABLE?

use of a composite type in CREATE TABLE?

From
Hannes Korte
Date:
Hi,

does anyone know how it is posible to set a composite type as the data 
type of a column when creating a new table?

CREATE TABLE tbl1 (
name VARCHAR(60) NOT NULL,
address comp_type_address
);

The exmaple above does not work.
Any help is appreciated.

-- 
Regards,
Hannes


Re: use of a composite type in CREATE TABLE?

From
Tom Lane
Date:
Hannes Korte <email@hkorte.com> writes:
> does anyone know how it is posible to set a composite type as the data 
> type of a column when creating a new table?

Use 7.5 ;-).  It's not supported in any existing release, but it does
work in CVS tip ...
        regards, tom lane


Re: use of a composite type in CREATE TABLE?

From
Josh Berkus
Date:
Hannes,

> does anyone know how it is posible to set a composite type as the data
> type of a column when creating a new table?

This is not yet supported.   Hopefully it will be supported in the upcoming 
version 7.5.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco