Re: Replace Old Table with New

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Replace Old Table with New
Дата
Msg-id 1684.1000968358@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Replace Old Table with New  ("David Lebling" <dlebling@ucentric.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: VACUUM vs VACUUM ANALYZE vs CLUSTER
Следующее
От: Sheldon Hearn
Дата:
Сообщение: Re: VACUUM vs VACUUM ANALYZE vs CLUSTER