From: | "Colin 't Hart" <cthart(at)yahoo(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Finding database names for overnight vacuum |
Date: | 2001-08-20 09:56:32 |
Message-ID: | 9lqmv2$snj$1@news.tht.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Quoting Stephen Davies:
> I have a cron job which vacuums etc all of my databases but it does not
> work with 7.1.2 because of the change in structure of .../data/base.
>
> It currently says:
>
> for q in /usr/local/pgsql/data/base/*; do
> blaa
> blaa
> done
>
> How does one get an equivalent list of all databases from 7.1.2?
> (and where is it documented?)
In an Oracle install, one has a file /etc/oratab (or something less
world-wide like /usr/share/oracle/oratab)
which lists the available Oracle instances. It also indicates which need to
be started at system boot -- ie. the
script which starts the Oracle instances at system boot checks this file for
which need to be started.
Someone recently posted a patch/contrib item to do this for Postgres.
A logical extension would be to have another field which indicates which
databases need to be VACUUMed
or VACUUM ANALYZEd when the approriate cron job executes.
Cheers,
Colin
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Elphick | 2001-08-20 09:57:38 | Re: Finding database names for overnight vacuum |
Previous Message | bpalmer | 2001-08-20 09:45:49 | Re: Finding database names for overnight vacuum |