Re: Replace Old Table with New - Mailing list pgsql-novice

From David Lebling
Subject Re: Replace Old Table with New
Date
Msg-id 003701c141d4$dc43fd40$0201010a@myserver.net
Whole thread Raw
In response to Replace Old Table with New  ("David Lebling" <dlebling@ucentric.com>)
Responses Re: Replace Old Table with New  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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@sss.pgh.pa.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@postgresql.org
>


pgsql-novice by date:

Previous
From: Sheldon Hearn
Date:
Subject: Re: VACUUM vs VACUUM ANALYZE vs CLUSTER
Next
From: Tom Lane
Date:
Subject: Re: VACUUM vs VACUUM ANALYZE vs CLUSTER