From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Rikard Pavelic <rikard.pavelic@zg.htnet.hr>
Cc: Merlin Moncure <mmoncure@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5982: recursive type crashes postgres
Date: Fri, 15 Apr 2011 15:49:24 -0500
Message-ID: <4DA86904020000250003C8CD@gw.wicourts.gov> (raw)
In-Reply-To: <4DA8AAD7.9000606@zg.htnet.hr>
References: <201104151834.p3FIYSQ0067290@wwwmaster.postgresql.org>
<BANLkTikVekidaty3_CczUKBYxhkqYiq1QA@mail.gmail.com>
<28780.1302894395@sss.pgh.pa.us>
<4DA8AAD7.9000606@zg.htnet.hr>
Rikard Pavelic <rikard.pavelic@zg.htnet.hr> wrote:
> On 15.4.2011 21:06, Tom Lane wrote:
>> The former.
>>
>> regression=# CREATE TYPE turtle AS
>> (
>> name varchar
>> );
>> CREATE TYPE
>> regression=# ALTER TYPE turtle ADD ATTRIBUTE offspring turtle;
>> ERROR: composite type turtle cannot be made a member of itself
>> regression=#
> Todo item?
I haven't seen anything which seems like a reasonable use case yet,
myself. If you were *actually* tracking turtles and their
offspring, that would be a completely worthless data structure. Is
there really a case where a reference to the ID of an object of like
type isn't a better solution?
-Kevin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, tgl@sss.pgh.pa.us, rikard.pavelic@zg.htnet.hr, mmoncure@gmail.com
Subject: Re: BUG #5982: recursive type crashes postgres
In-Reply-To: <4DA86904020000250003C8CD@gw.wicourts.gov>
References: <201104151834.p3FIYSQ0067290@wwwmaster.postgresql.org> <BANLkTikVekidaty3_CczUKBYxhkqYiq1QA@mail.gmail.com> <28780.1302894395@sss.pgh.pa.us> <4DA8AAD7.9000606@zg.htnet.hr> <4DA86904020000250003C8CD@gw.wicourts.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox