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

From Tom Lane
Subject Re: Replace Old Table with New
Date
Msg-id 1684.1000968358@sss.pgh.pa.us
Whole thread Raw
In response to Replace Old Table with New  ("David Lebling" <dlebling@ucentric.com>)
List pgsql-novice
"David Lebling" <dlebling@ucentric.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

pgsql-novice by date:

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