Re: Finding database names for overnight vacuum

Поиск
Список
Период
Сортировка
От Colin 't Hart
Тема Re: Finding database names for overnight vacuum
Дата
Msg-id 9lqmv2$snj$1@news.tht.net
обсуждение исходный текст
Ответ на Finding database names for overnight vacuum  (Stephen Davies <scldad@sdc.com.au>)
Список 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



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

Предыдущее
От: "Andrew Snow"
Дата:
Сообщение: RE: Finding database names for overnight vacuum
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: is this possible? it should be!