Re: too many clog files

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: too many clog files
Дата
Msg-id 20080905162446.GF4353@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: too many clog files  (Duan Ligong <duanlg@nec-as.nec.com.cn>)
Ответы Re: too many clog files  (Duan Ligong <duanlg@nec-as.nec.com.cn>)
Список pgsql-performance
Duan Ligong wrote:

> Greg wrote:
> > On Tue, 2 Sep 2008, Duan Ligong wrote:
> > > - Does Vacuum delete the old clog files?
> >
> > Yes, if those transactions are all done.  One possibility here is that
> > you've got some really long-running transaction floating around that is
> > keeping normal clog cleanup from happening.  Take a look at the output
> > from "select * from pg_stat_activity" and see if there are any really old
> > transactions floating around.
>
> Well, we could not wait so long and just moved the old clog files.
> The postgresql system is running well.

Move the old clog files back where they were, and run VACUUM FREEZE in
all your databases.  That should clean up all the old pg_clog files, if
you're really that desperate.  This is not something that I'd recommend
doing on a periodic basis ...

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: "Vladimir Sitnikov"
Дата:
Сообщение: Re: indexing for distinct search in timestamp based table
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: too many clog files