Self referencing composite datatype - Mailing list pgsql-general

From Sameer Thakur
Subject Self referencing composite datatype
Date
Msg-id CABzZFEv+Q2kxrSNLs9xsyQQybgd3qomLdiU4eMxaU9u5GO9B_A@mail.gmail.com
Whole thread Raw
Responses 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>)
List 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 by date:

Previous
From: Sameer Thakur
Date:
Subject: Re: Populating array of composite datatype
Next
From: Chris Travers
Date:
Subject: Re: Self referencing composite datatype