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

Re: Replace Old Table with New

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David Lebling" <dlebling(at)ucentric(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Replace Old Table with New
Date: 2001-09-20 14:00:45
Message-ID: 2287.1000994445@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
"David Lebling" <dlebling(at)ucentric(dot)com> writes:
> 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

In less-dusty Postgreses, ALTER TABLE RENAME works on indexes.  I'd
recommend an update for many reasons besides this one ;-)

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Sheldon HearnDate: 2001-09-20 14:06:33
Subject: Re: VACUUM vs VACUUM ANALYZE vs CLUSTER
Previous:From: Tom LaneDate: 2001-09-20 13:58:02
Subject: Re: VACUUM vs VACUUM ANALYZE vs CLUSTER

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