use of a composite type in CREATE TABLE?

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

use of a composite type in CREATE TABLE?

От:
Hannes Korte <email@hkorte.com>
Дата:
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 <tgl@sss.pgh.pa.us>
Дата:
Hannes Korte  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 <josh@agliodbs.com>
Дата:
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

FAQ