Re: DB is slow until DB is reloaded

Поиск
Список
Период
Сортировка
От Madison Kelly
Тема Re: DB is slow until DB is reloaded
Дата
Msg-id 4B426438.40109@alteeve.com
обсуждение исходный текст
Ответ на Re: DB is slow until DB is reloaded  (Steve Crawford <scrawford@pinpointresearch.com>)
Ответы Re: DB is slow until DB is reloaded  (Rosser Schwarz <rosser.schwarz@gmail.com>)
Список pgsql-performance
Steve Crawford wrote:
> Madison Kelly wrote:
>>
>>   I wanted to get ahead of the problem, hence my question here. :)
>> I've set this to run at night ('iwt' being the DB in question):
>>
>> su postgres -c "psql iwt -c \"VACUUM ANALYZE VERBOSE\"
>
> And why not the vacuumdb command?:
>
> su postgres -c "vacuumdb --analyze --verbose iwt"
>
>
> But this is duct-tape and bailing-wire. You REALLY need to make sure
> that autovacuum is running - you are likely to have much better results
> with less pain.
>
> Cheers,
> Steve

As for why '-c ...', I guess it was just a matter of which command came
to mind first. :) Is there a particular benefit to using the 'vacuumdb'
wrapper?

As for autovacuum, I assumed (yes, I know) that all v8.x releases
enabled it by default. How would I confirm that it's running or not?

Madi

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

Предыдущее
От: Madison Kelly
Дата:
Сообщение: Re: DB is slow until DB is reloaded
Следующее
От: Robert Haas
Дата:
Сообщение: Re: forced sequential scan when condition has current_user