Re: Loss of cluster status

Поиск
Список
Период
Сортировка
Искать
От
Christopher Kings-Lynne
Тема
Re: Loss of cluster status
Дата
Msg-id
0aa601c2d983$cd29ff60$6500a8c0@fhp.internal
Список
Дерево обсуждения
Re: Loss of cluster status "Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
> The new cluster is cool in that :
>
> 1. It works
> 2. It saves the indisclustered status
>
> However, after a dump and restore, this indisclustered status will be
lost.
> Would it be an idea to issue a CLUSTER command after the CREATE TABLE
> statement in SQL dumps for tables that have an indisclustered index?

Actually, rather than a full-blown CLUSTER, how about...:

UPDATE pg_index SET indisclustered=true WHERE indrelid=(SELECT oid FROM
pg_class WHERE relname='mytable' AND relnamespace = (SELECT oid FROM
pg_namespace WHERE nspname=CURRENT_SCHEMA()));

Hmmm...need something for index name as well tho...

Is that an idea?

Chris



В списке pgsql-hackers по дате отправления
От: Christopher Kings-Lynne
Дата:
Сообщение: Loss of cluster status
От: Christoph Haller
Дата:
Сообщение: ecpg vs. libpq
FAQ