Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 455309F9F05 for ; Mon, 24 Sep 2007 12:09:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 45617-05 for ; Mon, 24 Sep 2007 12:09:19 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id 2FA529F9E69 for ; Mon, 24 Sep 2007 12:09:19 -0300 (ADT) thread-index: Acf+vOp3SV/A8cNJRjiTKUerGnQqiw== Received: from [172.24.32.189] ([62.232.55.118]) by mail01.enterprisedb.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 24 Sep 2007 11:09:23 -0400 Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4073 Message-ID: <46F7D2C7.70105@enterprisedb.com> Date: Mon, 24 Sep 2007 16:07:51 +0100 From: "Heikki Linnakangas" User-Agent: Icedove 1.5.0.12 (X11/20070730) MIME-Version: 1.0 To: =?iso-8859-1?Q?G=E1bor_Farkas?= Cc: Subject: Re: select count(*) performance (vacuum did not help) References: <46F7C494.1050604@nekomancer.net> <46F7C9F1.1080805@enterprisedb.com> <46F7D207.3000901@nekomancer.net> In-Reply-To: <46F7D207.3000901@nekomancer.net> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 24 Sep 2007 15:09:23.0828 (UTC) FILETIME=[E424EB40:01C7FEBC] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/421 X-Sequence-Number: 26966 Gábor Farkas wrote: > hmm... can a full-vacuum be performed while the database is still "live" > (i mean serving requests)? > > will the db still be able to respond to queries? VACUUM FULL will exclusive lock the table, which means that other queries accessing it will block and wait until it's finished. > or in a different way: > > if i do a full vacuum to that table only, will the database still serve > data from the other tables at a normal speed? Yes. The extra I/O load vacuum full generates while it's running might disrupt other activity, though. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com