How to write a script to analyze and vacuum all the tables in the system catalog?Thanks. - Mailing list pgsql-general

From leaf_yxj
Subject How to write a script to analyze and vacuum all the tables in the system catalog?Thanks.
Date
Msg-id 1337279446660-5709059.post@n5.nabble.com
Whole thread Raw
Responses Re: How to write a script to analyze and vacuum all the tables in the system catalog?Thanks.
List pgsql-general
Hi Guys. Please help me about this.

For postgres database, it looks like we need analyze and vacuum all the
tables periodly.  I need to write a script which can be executed in crontab.
I don't have any clues about that. I only know the command :
analyze tablename;
vacuum tablename;


Please helps.

Thanks.

Regards.

Grace

--
View this message in context:
http://postgresql.1045698.n5.nabble.com/How-to-write-a-script-to-analyze-and-vacuum-all-the-tables-in-the-system-catalog-Thanks-tp5709059.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: cannot compile www_fdw Foreign Data Wrapper
Next
From: Steve Crawford
Date:
Subject: Re: How to write a script to analyze and vacuum all the tables in the system catalog?Thanks.