Self referencing composite datatype

Поиск
Список
Период
Сортировка
От Sameer Thakur
Тема Self referencing composite datatype
Дата
Msg-id CABzZFEv+Q2kxrSNLs9xsyQQybgd3qomLdiU4eMxaU9u5GO9B_A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Self referencing composite datatype  (Chris Travers <chris.travers@gmail.com>)
Re: Self referencing composite datatype  (David Johnston <polobo@yahoo.com>)
Re: Self referencing composite datatype  (Sergey Konoplev <gray.ru@gmail.com>)
Список pgsql-general
Hello,
I wanted to create a composite datatype to represent a Node. So it would have a few attributes and an array of type Node which is the children of this node.
create type Node as (r integer, s integer, children Node []); 
But i get error type Node[] does not exist. I understand that Node is not defined hence the error.
But how do i get around this problem? 

regards
Sameer

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

Предыдущее
От: Sameer Thakur
Дата:
Сообщение: Re: Populating array of composite datatype
Следующее
От: Chris Travers
Дата:
Сообщение: Re: Self referencing composite datatype