Re: BUG #5946: Long exclusive lock taken by vacuum (not full)

Поиск
Список
Период
Сортировка
Искать
От
Dimitri Fontaine
Тема
Re: BUG #5946: Long exclusive lock taken by vacuum (not full)
Дата
в 16:05:44
Msg-id
m2zkn4udmy.fsf@2ndQuadrant.fr
Ответ на
Список
Дерево обсуждения
BUG #5946: Long exclusive lock taken by vacuum (not full) "Maxim Boguk" <Maxim.Boguk@gmail.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Alvaro Herrera <alvherre@commandprompt.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Maxim Boguk <maxim.boguk@gmail.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Christopher Browne <cbbrowne@gmail.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Alvaro Herrera <alvherre@commandprompt.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Greg Stark <gsstark@mit.edu>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Greg Stark <gsstark@mit.edu>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Alvaro Herrera <alvherre@commandprompt.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Alvaro Herrera <alvherre@commandprompt.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Alvaro Herrera <alvherre@commandprompt.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Rainer Pruy <Rainer.Pruy@Acrys.COM>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Rainer Pruy <Rainer.Pruy@Acrys.COM>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Christopher Browne <cbbrowne@gmail.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Robert Haas <robertmhaas@gmail.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Robert Haas <robertmhaas@gmail.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Robert Haas <robertmhaas@gmail.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Christopher Browne <cbbrowne@gmail.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Jan Wieck <JanWieck@Yahoo.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Jan Wieck <JanWieck@Yahoo.com>
Re: BUG #5946: Long exclusive lock taken by vacuum (not full) Christopher Browne <cbbrowne@gmail.com>
Greg Stark  writes:
> So is it ok for inserting one row to cause my table to grow by 90GB?
> Or should there be some maximum size increment at which it stops
> growing? What should that maximum be? What if I'm on a big raid system
> where that size doesn't even add a block to every stripe element?

I'd think that capping the idea to the segment size makes sense.

Also, what about having a background process (bgwriter or autovacuum
come to mind) doing the work, rather than the backend that happens to be
inserting the row?

It could send a message, and continue creating a newer 8kb block if the
background process has not yet extended the storage.  Also, to be safe I
guess we could arrange to have the new segment be created way before
reaching the very end of the relation (so that adding 8kb does not need
to create a new segment, so as to avoid a race condition with the
background process doing so itself).

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support
В списке pgsql-bugs по дате отправления
От: Dickson S. Guedes
Дата:
От: Savita
Дата:
FAQ