Re: VACUUM hanging on idle system

Поиск
Список
Период
Сортировка
От Clarence
Тема Re: VACUUM hanging on idle system
Дата
Msg-id 1151000628.570040.247650@c74g2000cwc.googlegroups.com
обсуждение исходный текст
Ответ на VACUUM hanging on idle system  ("Clarence" <clarence1126@gmail.com>)
Ответы Re: VACUUM hanging on idle system  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> "Clarence" <clarence1126@gmail.com> writes:
> > I have a completely idle postgresql system (all backends "idle", none
> > "in transaction"); every time I attempt to vacuum a particular table,
> > it hangs after a while.
> > ...
> > In the system error log there is this line:
> >    could not write block 32756 of relation 1663/134097/385649401:
> >    No space left on device
> > The referenced block is in the table's index file. The disk has plenty
> > of space.
>
> ... but at one time not so much, right?

At the time of the error, there was over 1000 gigabytes free. The least
there has ever been was about 200 gigs free.

>
> > Someone tried to drop the index and got this:
> > ERROR:  FlushRelationBuffers("idx_ld1", 0): block 32756 is referenced
> > (private 0, global 1)
>
> What it looks like to me is that some backend tried to write out a dirty
> page, failed for lack of disk space, and neglected to release the buffer
> pin during error recovery.  The extra pin would block VACUUM but not
> much of anything else.  A postmaster restart should clear the problem.

Yes, vacuuming was the only operation affected, and restarting did fix
the problem.

>
> I seem to recall having fixed a bug like this in the past.  What PG
> version are you running?

We're running 8.0.3


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

Предыдущее
От: webb.sprague@gmail.com
Дата:
Сообщение: Re: Form builder?
Следующее
От: Kostas Maistrelis
Дата:
Сообщение: Re: sql question; checks if data already exists before