Re: [GENERAL] Bug with ALTER TABLE

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Ashley Clark <aclark(at)ghoti(dot)org>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] Bug with ALTER TABLE
Date: 2001-08-08 19:21:53
Message-ID: 200108081921.f78JLrf00486@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

I an confirm this is a bug. The line:

> View definition: Not a view

is the incorrect part.

Checking application/pgp-signature: FAILURE
-- Start of PGP signed section.
> I've discovered a bug in ALTER TABLE behaviour when it comes to
> renaming a view.
>
> I'm not sure if renaming a view is supported but Postgres will let you
> do it with ALTER TABLE aview RENAME TO aview2; SELECT operations still
> work on the resulting view after this command but a dump or \d aview2
> will now print out :
>
> oldplumbing=# \d t
> View "t"
> Attribute | Type | Modifier
> ------------+-------------------+----------
> ?column? | text |
> address | character varying |
> builder | character varying |
> subdiv | character varying |
> plan_# | character varying |
> sched_date | date |
> plan_id | integer |
> View definition: Not a view
>
> This is obviously not correct.
>
> --
> chalk slayer
-- End of PGP section, PGP failed!

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2001-08-08 20:25:22 Re: Random strings
Previous Message Peter Eisentraut 2001-08-08 19:21:09 Re: Random strings

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2001-08-08 20:19:11 Re: OID wraparound: summary and proposal
Previous Message Ashley Clark 2001-08-08 18:53:36 Re: Bug with ALTER TABLE