Re: Vacuuming technique doubt

From: David Rees <drees76(at)gmail(dot)com>
To: S Arvind <arvindwill(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Vacuuming technique doubt
Date: 2009-06-01 12:45:06
Message-ID: 72dbd3150906010545p42bfb46bhc35a121357d97b0a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Sun, May 31, 2009 at 10:26 PM, S Arvind <arvindwill(at)gmail(dot)com> wrote:
> Having a doubt, we want to vacuum and reindex some 50 most used tables daily
> on specific time. Is it best to have a function in postgres and call it in
> cron or is there any other good way to do the two process for specified
> tables at specified time?

Just write a SQL script with the appropriate commands and run it using
psql from cron. Set up your .pgpass and/or pg_hba.conf as
appropriate.

-Dave

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Smith 2009-06-01 13:18:04 Re: Postgresql cache (memory) performance + how to warm up the cache
Previous Message Shaul Dar 2009-06-01 11:05:48 Postgresql cache (memory) performance + how to warm up the cache