Skip site navigation (1) Skip section navigation (2)

Cancelling Blocking Autovacuums (patch)

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: Cancelling Blocking Autovacuums (patch)
Date: 2007-10-11 19:11:37
Message-ID: 1192129897.4233.433.camel@ebony.site (view raw or flat)
Thread:
Lists: pgsql-patches
Patch, with matching discussion thread on hackers.

Test script included, not suggested for inclusion in regression tests.

2007-10-11 19:35:27 BST 2209LOG:  autovacuum launcher started
2007-10-11 19:36:42 BST 2213LOG:  automatic analyze of table
"postgres.pg_catalog.pg_attribute" system usage: CPU 0.00s/0.01u sec
elapsed 4.28 sec
2007-10-11 19:36:43 BST 2213LOG:  automatic analyze of table
"postgres.pg_catalog.pg_class" system usage: CPU 0.00s/0.00u sec elapsed
0.95 sec
2007-10-11 19:36:45 BST 2213LOG:  cancelling autoanalyze of table
"postgres.public.a"
2007-10-11 19:41:38 BST 2214LOG:  automatic analyze of table
"postgres.public.a" system usage: CPU 0.00s/0.00u sec elapsed 233.62 sec

Test output shows that ANALYZE is cancelled, with no ill effects and
runs again a few minutes later after all the DDL has completed.

-- 
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com

Attachment: at.sql
Description: text/x-vhdl (736 bytes)
Attachment: cancel_blocking_av_worker.v3.patch
Description: text/x-patch (7.6 KB)

pgsql-patches by date

Next:From: Tom LaneDate: 2007-10-11 19:55:04
Subject: Re: txid cleanup
Previous:From: Tom LaneDate: 2007-10-11 18:59:20
Subject: Re: txid cleanup

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group