Обсуждение: use of a composite type in CREATE TABLE?

Поиск
Список
Период
Сортировка

use of a composite type in CREATE TABLE?

От
Hannes Korte
Дата:
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?

От
Tom Lane
Дата:
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?

От
Josh Berkus
Дата:
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