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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

  From Date Subject
Next Message Sheldon Hearn 2001-09-20 14:06:33 Re: VACUUM vs VACUUM ANALYZE vs CLUSTER
Previous Message Tom Lane 2001-09-20 13:58:02 Re: VACUUM vs VACUUM ANALYZE vs CLUSTER