Re: Replace Old Table with New

From: "David Lebling" <dlebling(at)ucentric(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Replace Old Table with New
Date: 2001-09-20 13:05:02
Message-ID: 003701c141d4$dc43fd40$0201010a@myserver.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

What command would achieve this? I'm using a somewhat dusty PostgreSql
(6.5.3).

>ALTER TABLE an-index RENAME TO an-index-new-name;
ERROR: TypeRename: type an-index not defined

and there is no ALTER INDEX.

Dave Lebling

----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> ALTER RENAME just changes the name of the given table. If you want to
> rename indexes, use ALTER RENAME to rename them, too.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2001-09-20 13:58:02 Re: VACUUM vs VACUUM ANALYZE vs CLUSTER
Previous Message Sheldon Hearn 2001-09-20 12:16:53 Re: VACUUM vs VACUUM ANALYZE vs CLUSTER