Re: vacuumdb vs. max_connections: SELECT waiting

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

 



"Thomas F. O'Connell" <tfo@xxxxxxxxxxxx> writes:
> Shortly after I kicked it off, I watched the number of connections  
> trend upward as a result of the aggressive locking of FULL. I didn't  
> want to let this continue without notifying the developers about a  
> potential downtime for their application, so I killed the vacuumdb  
> process I had started, figuring that the existing connections would  
> go right through.

Killing the vacuumdb client process wouldn't automatically abort the
current operation of the connected backend.  If that's all you did,
it would've finished out the VACUUM command, ie, essentially no effect.
Sending a SIGINT to the backend to cancel the current command would've
been the right thing to do.

> Can autovacuum recover for the months where  
> the FSM settings were not sufficient to cover the number of relations  
> in this cluster?

Probably not.  But VACUUM FULL isn't really a great choice either;
it will certainly do nothing at all for index bloat.  You might try
CLUSTER instead if you need to aggressively recover space.

			regards, tom lane


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux