User-Defined Datatypes

Поиск
Список
Период
Сортировка
От Philip Reimer
Тема User-Defined Datatypes
Дата
Msg-id 6A8F0747DB6FAA4AB507FD5C398B6063601413@wildcat.uni-muenster.de
обсуждение исходный текст
Ответы Re: User-Defined Datatypes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

Hello.

Is it possible to create new structured datatypes in PostgreSQL like in this IBM UDB2 statement:

 

create type person_t as (

name varchar(30),

car car_t)

 

create type car_t as (

model varchar(30),

plate carchar(20))

 

create table car of car_t

create table person of person_t

 

where the table person contains a reference to the car-type in table car?

In the reference manuel I only found the create-table-statement, which automatically creates a new data-typ corresponding to the table. But is it possible to implement the above model including the reference by making only create-table-statements?

Thanks for a quick answer.

Philip Reimer

В списке pgsql-general по дате отправления:

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Why does postgres not take into account my index on a bigint column ?
Следующее
От: Andrew Gould
Дата:
Сообщение: Re: Postgresql installation problem