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 06:45:58
Message-ID: 1684.1000968358@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:
> I investigated using 'alter table ... rename to ...' but it didn't seem to
> also rename the associated indexes, and before actually implementing code to
> do it I want to ask if that would actually work.

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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Sheldon Hearn 2001-09-20 12:16:53 Re: VACUUM vs VACUUM ANALYZE vs CLUSTER
Previous Message Tom Lane 2001-09-20 03:37:56 Re: VACUUM vs VACUUM ANALYZE vs CLUSTER