X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id EBB479DC898 for ; Fri, 10 Feb 2006 12:04:01 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 06986-08 for ; Fri, 10 Feb 2006 12:03:59 -0400 (AST) X-Greylist: delayed 00:06:39.508526 by SQLgrey- Received: from fusion.bennyvision.com (users.bennysworldofporn.com [71.32.179.124]) by postgresql.org (Postfix) with SMTP id C659D9DC891 for ; Fri, 10 Feb 2006 12:03:58 -0400 (AST) Received: (qmail 32737 invoked by uid 1007); 10 Feb 2006 15:57:17 -0000 Received: from localhost (HELO webmail.stinkweasel.net) (127.0.0.1) by fusion.bennyvision.com with SMTP; 10 Feb 2006 15:57:17 -0000 Received: from 134.244.169.17 (SquirrelMail authenticated user benny) by webmail.stinkweasel.net with HTTP; Fri, 10 Feb 2006 09:57:17 -0600 (CST) Message-ID: <2894.134.244.169.17.1139587037.squirrel@webmail.stinkweasel.net> Date: Fri, 10 Feb 2006 09:57:17 -0600 (CST) Subject: Is the database being VACUUMed? From: "C. Bensend" To: pgsql-admin@postgresql.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200602/108 X-Sequence-Number: 20529 Hey folks, I'm running 8.0.4 on OpenBSD, and I'm running into issues where a large batch job will fire up and occasionally coincide with a VACUUM. Which then makes this batch take an hour and a half, rather than the 30 minutes it usually takes. :( I am going to upgrade to 8.1.2 this weekend, before you ask. :) Here's the question - is there a query I can make in my scripts (using perl/DBD::Pg) to see if the database is being VACUUMed at the current time? I could add a sleep, so the script would patiently wait for the VACUUM to finish before kicking off several intense queries. Thanks much! Benny -- "'And you've got 10 gig of files to put through our mail system?' I ask, squeezing my mouse in a non-approved manner." -- BOFH, 2006-01