Re: ALTER TYPE RENAME - Mailing list pgsql-patches

From Petr Jelinek
Subject Re: ALTER TYPE RENAME
Date
Msg-id 46FEDFCD.1030207@pjmodos.net
Whole thread Raw
In response to Re: ALTER TYPE RENAME  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: ALTER TYPE RENAME  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> BTW, another issue this brings up is whether we should reject
>
> regression=# create type footyp as (f2 int);
> CREATE TYPE
> regression=# alter table footyp rename to foobar;
> ALTER TABLE
>
> Currently, since there's no ALTER TYPE RENAME command, this is useful
> functionality and I wouldn't want to forbid it.  But if we provide
> ALTER TYPE RENAME then consistency would suggest requiring people to
> use that for composite types.
>
I assume ALTER TYPE RENAME should rename associated relation too, then.

--
Regards
Petr Jelinek (PJMODOS)


pgsql-patches by date:

Previous
From: Dave Page
Date:
Subject: Re: OpenSSL Applink
Next
From: Zdenek Kotala
Date:
Subject: Re: pgcrypto: fix for broken solaris openssl, v03