From: Merlin Moncure <mmoncure@gmail.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Rikard Pavelic <rikard.pavelic@zg.htnet.hr>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5982: recursive type crashes postgres
Date: Fri, 15 Apr 2011 16:06:28 -0500
Message-ID: <BANLkTin2ud7LiKcKCs-USkXdnKnn2b+SqA@mail.gmail.com> (raw)
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>
On Fri, Apr 15, 2011 at 3:49 PM, Kevin Grittner
<Kevin.Grittner@wicourts.gov> wrote:
> 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?
There are lots of use cases for this. I use composite types to
marshal data to the client all the time, and recursive structures are
fairly common in many classic problems. Recursive composites fit the
bill perfectly.
merlin
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: mmoncure@gmail.com, Kevin.Grittner@wicourts.gov, tgl@sss.pgh.pa.us, rikard.pavelic@zg.htnet.hr
Subject: Re: BUG #5982: recursive type crashes postgres
In-Reply-To: <BANLkTin2ud7LiKcKCs-USkXdnKnn2b+SqA@mail.gmail.com>
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> <BANLkTin2ud7LiKcKCs-USkXdnKnn2b+SqA@mail.gmail.com>
* 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