Re: Slow VACUUM - Mailing list pgsql-novice

From Tom Lane
Subject Re: Slow VACUUM
Date
Msg-id 10783.1063376490@sss.pgh.pa.us
Whole thread Raw
In response to Slow VACUUM  (Wim <wdh@belbone.be>)
List pgsql-novice
Wim <wdh@belbone.be> writes:
> PS I created 4 indexes on the tables. I cannot cancel the query... It
> keeps running. Otherwise I thought of dropping the indexes, vacuum the
> table and re-create the indexes...

Sure you can cancel it (assuming you're running any remotely up-to-date
version of Postgres).  If you didn't issue the vacuum command from an
interactive psql, the easiest way is to identify the backend running the
command and send it a SIGINT ("kill -INT pid-of-backend").  Be sure to
use SIGINT and not any other signal.

If what you're trying to do is a VACUUM FULL, dropping the indexes
should help.  Plain VACUUM I'm not so sure is worth the trouble.

Also you might try increasing VACUUM_MEM setting before you try again.

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Finding connected users
Next
From: Ron Johnson
Date:
Subject: Re: operation logging