Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

Next:From: Tom LaneDate: 2001-09-20 13:58:02
Subject: Re: VACUUM vs VACUUM ANALYZE vs CLUSTER
Previous:From: Sheldon HearnDate: 2001-09-20 12:16:53
Subject: Re: VACUUM vs VACUUM ANALYZE vs CLUSTER

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group