Re: Execute VACUUM FULL when DB touches a specific size ?

Поиск
Список
Период
Сортировка
От Nilesh Govindarajan
Тема Re: Execute VACUUM FULL when DB touches a specific size ?
Дата
Msg-id 4BB9624D.7010600@itech7.com
обсуждение исходный текст
Ответ на Re: Execute VACUUM FULL when DB touches a specific size ?  (Scott Marlowe <scott.marlowe@gmail.com>)
Ответы Re: Execute VACUUM FULL when DB touches a specific size ?  (Vibhor Kumar <vibhor.aim@gmail.com>)
Re: Execute VACUUM FULL when DB touches a specific size ?  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgsql-admin
On 04/05/10 08:54, Scott Marlowe wrote:
> On Sun, Apr 4, 2010 at 8:21 PM, Nilesh Govindarajan<lists@itech7.com>  wrote:
>> Hi,
>>
>> I wish to execute VACUUM FULL when DB touches a specific size. How to do it
>> ?
>>
>> I'm aware about the caveats of VACUUM FULL.
>>
>
> Write a bash script that cds to the data dir and runs du -s, grabs the
> value, and if it's over a certain size then run vacuum full.

That's what I was thinking to do, but how do I distinguish between the
databases ? The datadir/base seems have directories whose names are numbers.

--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com
मेरा भारत महान !
मम भारत: महत्तम भवतु !

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Execute VACUUM FULL when DB touches a specific size ?
Следующее
От: Vibhor Kumar
Дата:
Сообщение: Re: Execute VACUUM FULL when DB touches a specific size ?