Re: vacuumdb vs. max_connections: SELECT waiting

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Thomas F(dot) O'Connell" <tfo(at)sitening(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: vacuumdb vs. max_connections: SELECT waiting
Date: 2006-05-13 03:08:17
Message-ID: 25842.1147489697@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Thomas F. O'Connell" <tfo(at)sitening(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Thomas F. O'Connell 2006-05-13 08:47:00 Re: vacuumdb vs. max_connections: SELECT waiting
Previous Message Thomas F. O'Connell 2006-05-13 01:13:14 vacuumdb vs. max_connections: SELECT waiting