Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tkd9f-0003V9-Iy for pgsql-admin@arkaria.postgresql.org; Mon, 17 Dec 2012 16:02:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tkd9e-0003jI-IT for pgsql-admin@arkaria.postgresql.org; Mon, 17 Dec 2012 16:02:58 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tkd9d-0003jD-RP for pgsql-admin@postgresql.org; Mon, 17 Dec 2012 16:02:58 +0000 Received: from sd-17937.dedibox.fr ([88.191.100.74]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tkd9b-0000YW-G8 for pgsql-admin@postgresql.org; Mon, 17 Dec 2012 16:02:57 +0000 Received: from [192.168.1.16] (ATuileries-153-1-35-180.w83-202.abo.wanadoo.fr [83.202.18.180]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 215EE3B914; Mon, 17 Dec 2012 17:14:17 +0100 (CET) Message-ID: <1355760173.1977.14.camel@localhost.localdomain> Subject: Re: [Autovacuum] Issue to understand some logs From: Guillaume Lelarge To: Baptiste LHOSTE Cc: pgsql-admin@postgresql.org Date: Mon, 17 Dec 2012 17:02:53 +0100 In-Reply-To: <157467040.1756135.1355759855861.JavaMail.root@alaloop.com> References: <157467040.1756135.1355759855861.JavaMail.root@alaloop.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4 (3.4.4-2.fc17) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Mon, 2012-12-17 at 16:57 +0100, Baptiste LHOSTE wrote: > Hi everybody, > > I have trouble understanding some logs of postgreSQL. > > Here you can find a log from the auto-vacuum process : > > 2012-12-17 16:38:58 CET LOG: automatic vacuum of table "flows.public.agg_t344_outgoing_a41_src_net_and_dst_net_f5": index scans: 0 > pages: 0 removed, 59820 remain > tuples: 0 removed, 5801752 remain > system usage: CPU 0.93s/0.95u sec elapsed 423.07 sec > > I am right to conclude that there is 5801752 available tuples in the previous table ? > > If true, I am very confused because our table can not exceed 2592000 tuples (We delete old ones). > > To be sure I tried to run the following query to count availables tuples : > > select count(*) from agg_t344_outgoing_a41_src_net_and_dst_net_f5; > count > --------- > 2584398 > (1 row) > > Can someone give me a clue ? > It could be dead rows, still visible for other transactions. -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin