Re: Invulnerable VACUUM process thrashing everything

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Russ Garrett <russ@xxxxxxxxxxxxx> writes:
> VACUUM *will* respond to a SIGTERM, but it doesn't check very often - 
> I've often had to wait hours for it to determine that it's been killed, 
> and my tables aren't anywhere near 1TB. Maybe this is a place where 
> things could be improved...

Hmm, there are CHECK_FOR_INTERRUPTS calls in all the loops that seem
significant to me.  Is there anything odd about your database schema?
Unusual index types or data types maybe?  Also, what PG version are
you using?

If you notice a VACUUM not responding to SIGTERM promptly, it'd be
useful to attach to the backend process with gdb and get a stack trace
to find out what it's doing.

			regards, tom lane


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux