Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 073451337BFE for ; Fri, 15 Apr 2011 18:06:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 22325-04 for ; Fri, 15 Apr 2011 21:06:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id 5F39E1337BDF for ; Fri, 15 Apr 2011 18:06:28 -0300 (ADT) Received: by pvg12 with SMTP id 12so1252809pvg.19 for ; Fri, 15 Apr 2011 14:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0ihFmN6QA7ZDOS9eNavlsDa3hUVwEtHpiKKMrjhrWi0=; b=FML0OTmBgg9l5mhUlab7YexaLYjj61O7Un5P9urpZw/tKPVP08dxCLffkj98srs1ke t52dRUgsBl64ofIlHwB96UlrVbnkTlyyxaeXCMAcLDdqJEbZQBfL31ZxxuOB/QEChyUR muWDJaZlsdSjB5BlA+kNwXTW0T3uqabNBYlSM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=lBy5jDy4GRJT3TL0rD6hD4K6m8znBfBNceAauJ8gq2UaMqE9gzFgp3Moqf5ShmyLn7 4O7gXIOAU78oye3QnhOVOEoOE2FAOzsb/7f6LD+lvoRJhlDqUuOZZv5evAb2J97n3m98 5maAWMIVRUfwqN+/jH0XpP7PTZubbEIU67RJQ= MIME-Version: 1.0 Received: by 10.68.51.225 with SMTP id n1mr2472794pbo.71.1302901588383; Fri, 15 Apr 2011 14:06:28 -0700 (PDT) Received: by 10.68.59.105 with HTTP; Fri, 15 Apr 2011 14:06:28 -0700 (PDT) In-Reply-To: <4DA86904020000250003C8CD@gw.wicourts.gov> References: <201104151834.p3FIYSQ0067290@wwwmaster.postgresql.org> <28780.1302894395@sss.pgh.pa.us> <4DA8AAD7.9000606@zg.htnet.hr> <4DA86904020000250003C8CD@gw.wicourts.gov> Date: Fri, 15 Apr 2011 16:06:28 -0500 Message-ID: Subject: Re: BUG #5982: recursive type crashes postgres From: Merlin Moncure To: Kevin Grittner Cc: Tom Lane , Rikard Pavelic , pgsql-bugs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201104/114 X-Sequence-Number: 30033 On Fri, Apr 15, 2011 at 3:49 PM, Kevin Grittner wrote: > I haven't seen anything which seems like a reasonable use case yet, > myself. =A0If you were *actually* tracking turtles and their > offspring, that would be a completely worthless data structure. =A0Is > 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