full vacuum cancelation

Started by Viktor Bojovićover 15 years ago4 messagesgeneral
Jump to latest
#1Viktor Bojović
viktor.bojovic@gmail.com

Hi,
my full vacuuming of one table runs still after four days. Is it safe to
cancel it by pressing Ctrl+c?

--
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Viktor Bojović (#1)
Re: full vacuum cancelation

=?UTF-8?Q?Viktor_Bojovi=C4=87?= <viktor.bojovic@gmail.com> writes:

my full vacuuming of one table runs still after four days. Is it safe to
cancel it by pressing Ctrl+c?

I assume this is a pre-9.0 Postgres version?

Depending on how far along the vacuum actually is, there's a possibility
that trying to cancel it will cause a PANIC, but that will not damage
your data --- the worst consequence would be killing any other sessions
that are running concurrently.

regards, tom lane

#3Vick Khera
vivek@khera.org
In reply to: Viktor Bojović (#1)
Re: full vacuum cancelation

On Thu, Oct 21, 2010 at 9:15 AM, Viktor Bojović
<viktor.bojovic@gmail.com> wrote:

my full vacuuming of one table runs still after four days. Is it safe to
cancel it by pressing Ctrl+c?

Is it really running (as in progressing with its work) or is it
blocking waiting for a lock? Check the pg_stat_activity view to see
what it is doing. How big is this table?

#4Viktor Bojović
viktor.bojovic@gmail.com
In reply to: Tom Lane (#2)
Re: full vacuum cancelation

On Thu, Oct 21, 2010 at 5:00 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

=?UTF-8?Q?Viktor_Bojovi=C4=87?= <viktor.bojovic@gmail.com> writes:

my full vacuuming of one table runs still after four days. Is it safe to
cancel it by pressing Ctrl+c?

I assume this is a pre-9.0 Postgres version?

Depending on how far along the vacuum actually is, there's a possibility
that trying to cancel it will cause a PANIC, but that will not damage
your data --- the worst consequence would be killing any other sessions
that are running concurrently.

regards, tom lane

version is 8.3.x , everything went fine. thanx.

--
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me