Re: ANALYZE for a schema

From: Richard Huxton <dev(at)archonet(dot)com>
To: Andrus <eetasoft(at)online(dot)ee>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ANALYZE for a schema
Date: 2006-04-10 08:46:15
Message-ID: 443A1B57.1030109@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2006-04-10 08:55:28 Re: Load testing across 2 machines
Previous Message Richard Huxton 2006-04-10 08:41:33 Re: Creating a trigger on n tables?