composite types in 7.3

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема composite types in 7.3
Дата
Msg-id 200209301613.08468.list-pgsql-general@empires.org
обсуждение исходный текст
Список pgsql-general
I tried:
test=> create type mytype as (a int, b text);
CREATE TYPE
test=> create table mytable(x mytype,y int);
CREATE TABLE

It seemed to succeed OK, but did I do anything worthwhile? Since composite
functions don't have input/output functions, I don't know how to actually
create a record in mytable.

Are composite functions supposed to be used in this way? I know that composite
types can be used so that a function can return a record of that type, but is
there any other use?

Regards,
    Jeff

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] CURRENT_TIMESTAMP
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: cursors