dbTalk Databases Forums  

VACUUM interruption

comp.databases.postgresql comp.databases.postgresql


Discuss VACUUM interruption in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paolo Holzl
 
Posts: n/a

Default VACUUM interruption - 03-20-2008 , 07:22 AM






Of the times the execution of VACUUM asks for too time therefore I want
to interrupt.
Now to do it I shutdown the system.
It exists a better system ?

Is it possible AUTOVACUUM on
Version 7.4.19 ?

Thank's
--


Reply With Quote
  #2  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: VACUUM interruption - 03-21-2008 , 05:40 AM






Paolo Holzl <software (AT) toglispamtek-up (DOT) com> wrote:
Quote:
Of the times the execution of VACUUM asks for too time therefore I want
to interrupt.
Now to do it I shutdown the system.
It exists a better system ?
How about:

SET statement_timeout=<maximum time in milliseconds>;
VACUUM atable;
SET statement_timeout=0;

That would interrupt the VACUUM if it takes too long, cancelling all its
effects.

Quote:
Is it possible AUTOVACUUM on
Version 7.4.19 ?
There is an "autovacuum" contrib module in 7.4, according to
http://www.postgresql.org/docs/8.3/s...lease-7-4.html

I don't know how stable it is; autovacuum has definitely improved a
lot since it was included into PostgreSQL core.

Yours,
Laurenz Albe


Reply With Quote
  #3  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: VACUUM interruption - 03-21-2008 , 05:40 AM



Paolo Holzl <software (AT) toglispamtek-up (DOT) com> wrote:
Quote:
Of the times the execution of VACUUM asks for too time therefore I want
to interrupt.
Now to do it I shutdown the system.
It exists a better system ?
How about:

SET statement_timeout=<maximum time in milliseconds>;
VACUUM atable;
SET statement_timeout=0;

That would interrupt the VACUUM if it takes too long, cancelling all its
effects.

Quote:
Is it possible AUTOVACUUM on
Version 7.4.19 ?
There is an "autovacuum" contrib module in 7.4, according to
http://www.postgresql.org/docs/8.3/s...lease-7-4.html

I don't know how stable it is; autovacuum has definitely improved a
lot since it was included into PostgreSQL core.

Yours,
Laurenz Albe


Reply With Quote
  #4  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: VACUUM interruption - 03-21-2008 , 05:40 AM



Paolo Holzl <software (AT) toglispamtek-up (DOT) com> wrote:
Quote:
Of the times the execution of VACUUM asks for too time therefore I want
to interrupt.
Now to do it I shutdown the system.
It exists a better system ?
How about:

SET statement_timeout=<maximum time in milliseconds>;
VACUUM atable;
SET statement_timeout=0;

That would interrupt the VACUUM if it takes too long, cancelling all its
effects.

Quote:
Is it possible AUTOVACUUM on
Version 7.4.19 ?
There is an "autovacuum" contrib module in 7.4, according to
http://www.postgresql.org/docs/8.3/s...lease-7-4.html

I don't know how stable it is; autovacuum has definitely improved a
lot since it was included into PostgreSQL core.

Yours,
Laurenz Albe


Reply With Quote
  #5  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: VACUUM interruption - 03-21-2008 , 05:40 AM



Paolo Holzl <software (AT) toglispamtek-up (DOT) com> wrote:
Quote:
Of the times the execution of VACUUM asks for too time therefore I want
to interrupt.
Now to do it I shutdown the system.
It exists a better system ?
How about:

SET statement_timeout=<maximum time in milliseconds>;
VACUUM atable;
SET statement_timeout=0;

That would interrupt the VACUUM if it takes too long, cancelling all its
effects.

Quote:
Is it possible AUTOVACUUM on
Version 7.4.19 ?
There is an "autovacuum" contrib module in 7.4, according to
http://www.postgresql.org/docs/8.3/s...lease-7-4.html

I don't know how stable it is; autovacuum has definitely improved a
lot since it was included into PostgreSQL core.

Yours,
Laurenz Albe


Reply With Quote
  #6  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: VACUUM interruption - 03-21-2008 , 05:40 AM



Paolo Holzl <software (AT) toglispamtek-up (DOT) com> wrote:
Quote:
Of the times the execution of VACUUM asks for too time therefore I want
to interrupt.
Now to do it I shutdown the system.
It exists a better system ?
How about:

SET statement_timeout=<maximum time in milliseconds>;
VACUUM atable;
SET statement_timeout=0;

That would interrupt the VACUUM if it takes too long, cancelling all its
effects.

Quote:
Is it possible AUTOVACUUM on
Version 7.4.19 ?
There is an "autovacuum" contrib module in 7.4, according to
http://www.postgresql.org/docs/8.3/s...lease-7-4.html

I don't know how stable it is; autovacuum has definitely improved a
lot since it was included into PostgreSQL core.

Yours,
Laurenz Albe


Reply With Quote
  #7  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: VACUUM interruption - 03-21-2008 , 05:40 AM



Paolo Holzl <software (AT) toglispamtek-up (DOT) com> wrote:
Quote:
Of the times the execution of VACUUM asks for too time therefore I want
to interrupt.
Now to do it I shutdown the system.
It exists a better system ?
How about:

SET statement_timeout=<maximum time in milliseconds>;
VACUUM atable;
SET statement_timeout=0;

That would interrupt the VACUUM if it takes too long, cancelling all its
effects.

Quote:
Is it possible AUTOVACUUM on
Version 7.4.19 ?
There is an "autovacuum" contrib module in 7.4, according to
http://www.postgresql.org/docs/8.3/s...lease-7-4.html

I don't know how stable it is; autovacuum has definitely improved a
lot since it was included into PostgreSQL core.

Yours,
Laurenz Albe


Reply With Quote
  #8  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: VACUUM interruption - 03-21-2008 , 05:40 AM



Paolo Holzl <software (AT) toglispamtek-up (DOT) com> wrote:
Quote:
Of the times the execution of VACUUM asks for too time therefore I want
to interrupt.
Now to do it I shutdown the system.
It exists a better system ?
How about:

SET statement_timeout=<maximum time in milliseconds>;
VACUUM atable;
SET statement_timeout=0;

That would interrupt the VACUUM if it takes too long, cancelling all its
effects.

Quote:
Is it possible AUTOVACUUM on
Version 7.4.19 ?
There is an "autovacuum" contrib module in 7.4, according to
http://www.postgresql.org/docs/8.3/s...lease-7-4.html

I don't know how stable it is; autovacuum has definitely improved a
lot since it was included into PostgreSQL core.

Yours,
Laurenz Albe


Reply With Quote
  #9  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: VACUUM interruption - 03-21-2008 , 05:40 AM



Paolo Holzl <software (AT) toglispamtek-up (DOT) com> wrote:
Quote:
Of the times the execution of VACUUM asks for too time therefore I want
to interrupt.
Now to do it I shutdown the system.
It exists a better system ?
How about:

SET statement_timeout=<maximum time in milliseconds>;
VACUUM atable;
SET statement_timeout=0;

That would interrupt the VACUUM if it takes too long, cancelling all its
effects.

Quote:
Is it possible AUTOVACUUM on
Version 7.4.19 ?
There is an "autovacuum" contrib module in 7.4, according to
http://www.postgresql.org/docs/8.3/s...lease-7-4.html

I don't know how stable it is; autovacuum has definitely improved a
lot since it was included into PostgreSQL core.

Yours,
Laurenz Albe


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.