Re: ALTER TYPE extensions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: ALTER TYPE extensions
Date
Msg-id 1285100279.5468.33.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: ALTER TYPE extensions  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Responses Re: ALTER TYPE extensions
List pgsql-hackers
On tis, 2010-09-21 at 17:53 +0900, KaiGai Kohei wrote:
> Sorry, I missed a bug when we create a typed table using composite
> type which has been altered.

> Perhaps, we also need to patch at transformOfType() to
> skip attributes with attisdropped.

Fixed.

> An additional question. It seems me we can remove all the attributes
> from the composite type, although CREATE TYPE prohibits to create
> a composite type without any attribute.
> What does it mean a composite type with no attribute?
> Or, do we need a restriction to prevent the last one attribute?

We need to allow the creation of zero-attribute types then; same as with
CREATE TABLE.  I have fixed that now.


Attachment

pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: .gitignore files, take two
Next
From: Tom Lane
Date:
Subject: Re: .gitignore files, take two