From: Tom Lane <tgl@sss.pgh.pa.us>
To: Merlin Moncure <mmoncure@gmail.com>
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 15:06:35 -0400
Message-ID: <28780.1302894395@sss.pgh.pa.us> (raw)
In-Reply-To: <BANLkTikVekidaty3_CczUKBYxhkqYiq1QA@mail.gmail.com>
References: <201104151834.p3FIYSQ0067290@wwwmaster.postgresql.org>
<BANLkTikVekidaty3_CczUKBYxhkqYiq1QA@mail.gmail.com>
Merlin Moncure <mmoncure@gmail.com> writes:
> On Fri, Apr 15, 2011 at 1:34 PM, Rikard Pavelic
> <rikard.pavelic@zg.htnet.hr> wrote:
>> CREATE TYPE turtle AS
>> (
>> name varchar
>> );
>> ALTER TYPE turtle ADD ATTRIBUTE offspring turtle;
> This is a duplicate: see Mar 28 thread 'Recursive containment of
> composite types'. Was it decided whether to lock the functionality
> down or fix it?
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=#
regards, tom lane
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: tgl@sss.pgh.pa.us, mmoncure@gmail.com, rikard.pavelic@zg.htnet.hr
Subject: Re: BUG #5982: recursive type crashes postgres
In-Reply-To: <28780.1302894395@sss.pgh.pa.us>
References: <201104151834.p3FIYSQ0067290@wwwmaster.postgresql.org> <BANLkTikVekidaty3_CczUKBYxhkqYiq1QA@mail.gmail.com> <28780.1302894395@sss.pgh.pa.us>
* 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