Re: Recursive types?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "John Hansen" <john(at)geeknet(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Recursive types?
Date: 2005-04-11 14:37:41
Message-ID: 29643.1113230261@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"John Hansen" <john(at)geeknet(dot)com(dot)au> writes:
> create table foo ( id serial primary key, path text);
> alter table foo add ref foo;

> Is this a bug or a random feature?

I'd say it's a random misfeature ;-). I certainly don't care to promise
that it's supported ... but on the other hand, preventing you from doing
it seems nontrivial (consider indirect recursions). I'd put this in the
category of "doctor, it hurts when I do that".

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2005-04-11 16:18:10 Re: Question regarding clock-sweep
Previous Message Michael Meskes 2005-04-11 14:28:25 Need help woth thread support in ecpglib