X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 594E2475F2C for ; Tue, 29 Apr 2003 19:48:23 -0400 (EDT) Received: from b.smtp-out.sonic.net (b.smtp-out.sonic.net [208.201.224.39]) by postgresql.org (Postfix) with SMTP id A4FE4475CBC for ; Tue, 29 Apr 2003 19:48:12 -0400 (EDT) Received: (qmail 28877 invoked from network); 29 Apr 2003 23:48:15 -0000 Received: from sub.sonic.net (208.201.224.8) by b.smtp-out.sonic.net with SMTP; 29 Apr 2003 23:48:15 -0000 Received: from thune.mrc-home.org (adsl-209-204-178-126.sonic.net [209.204.178.126]) by sub.sonic.net (8.11.6p2/8.8.5) with ESMTP id h3TNmFC23450 for ; Tue, 29 Apr 2003 16:48:15 -0700 X-envelope-info: Received: by thune.mrc-home.org (8.11.4) id h3TNmFK16087; Tue, 29 Apr 2003 16:48:15 -0700 Newsgroups: local.ml.postgresql.admin From: dalgoda@ix.netcom.com (Mike Castle) Subject: Re: vacuuming and freed disk space References: <20030429143356.C5EFD3F04@guthrie.charm.net> Organization: House of Linux X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Path: not-for-mail Originator: nexus@thune.mrc.org (Mike Castle) Date: Tue, 29 Apr 2003 16:48:15 -0700 Message-ID: To: pgsql-admin@postgresql.org X-Spam-Status: No, hits=-13.1 required=5.0 tests=BAYES_01,REFERENCES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/395 X-Sequence-Number: 8550 In article <20030429143356.C5EFD3F04@guthrie.charm.net>, john wrote: >i am looking at our database table maintenance. we are running a "space >watch" task that looks at available disk space and removes old records >when/if a certain threshold is passed. I'm wondering: why? If you just regularly expired old information anyway, PG will reuse the data, so you should end up with a steady state. If really paranoid you can monitor various PG stats, I believe, and use that to dry when to delete/vacuum. But your current approach seemed a little odd to me (a bit too non-deterministic is my gut feeling). mrc -- Mike Castle dalgoda@ix.netcom.com www.netcom.com/~dalgoda/ We are all of us living in the shadow of Manhattan. -- Watchmen fatal ("You are in a maze of twisty compiler features, all different"); -- gcc