Re: ALTER TYPE RENAME

From: Petr Jelinek <pjmodos(at)pjmodos(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: ALTER TYPE RENAME
Date: 2007-09-29 23:29:17
Message-ID: 46FEDFCD.1030207@pjmodos.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Zdenek Kotala 2007-09-30 01:20:33 Re: pgcrypto: fix for broken solaris openssl, v03
Previous Message Dave Page 2007-09-29 20:01:16 Re: OpenSSL Applink