Re: ANALYZE for a schema

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: ANALYZE for a schema
Дата
Msg-id 443A1B57.1030109@archonet.com
обсуждение исходный текст
Ответ на ANALYZE for a schema  ("Andrus" <eetasoft@online.ee>)
Список pgsql-general
Andrus wrote:
>  I have multi company database where each company is stored in different
> schema.
>
> When I create incrementally new companis and add data to it ANALYZE command
> takes a lot of time: every time it analyzes the previous company data also.
>
> How to run ANALYZE command for a single schema ?

You can run ANALYZE on single tables, so it should be simple enough to
write a script to get a list of all tables in the new schema and analyse
each one.

--
   Richard Huxton
   Archonet Ltd

В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Creating a trigger on n tables?
Следующее
От: Vittorio
Дата:
Сообщение: Updating & inserting in one shot!