Skip site navigation (1) Skip section navigation (2)

Re: BUG #5982: recursive type crashes postgres

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: Rikard Pavelic <rikard(dot)pavelic(at)zg(dot)htnet(dot)hr>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5982: recursive type crashes postgres
Date: 2011-04-15 19:06:35
Message-ID: 28780.1302894395@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Merlin Moncure <mmoncure(at)gmail(dot)com> writes:
> On Fri, Apr 15, 2011 at 1:34 PM, Rikard Pavelic
> <rikard(dot)pavelic(at)zg(dot)htnet(dot)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

In response to

Responses

pgsql-bugs by date

Next:From: YanishDate: 2011-04-15 19:33:22
Subject: BUG #5983: creating accounts
Previous:From: Merlin MoncureDate: 2011-04-15 18:39:25
Subject: Re: BUG #5982: recursive type crashes postgres

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group