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