Re: vacuumdb vs. max_connections: SELECT waiting - Mailing list pgsql-admin

From Tom Lane
Subject Re: vacuumdb vs. max_connections: SELECT waiting
Date
Msg-id 25842.1147489697@sss.pgh.pa.us
Whole thread Raw
In response to vacuumdb vs. max_connections: SELECT waiting  ("Thomas F. O'Connell" <tfo@sitening.com>)
List pgsql-admin
"Thomas F. O'Connell" <tfo@sitening.com> 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

pgsql-admin by date:

Previous
From: "Thomas F. O'Connell"
Date:
Subject: vacuumdb vs. max_connections: SELECT waiting
Next
From: "Thomas F. O'Connell"
Date:
Subject: Re: vacuumdb vs. max_connections: SELECT waiting