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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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 Content-Type Size
cancel_blocking_av_worker.v3.patch text/x-patch 7.6 KB
at.sql text/x-vhdl 736 bytes

Browse pgsql-patches by date

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