X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B466C5E46D2 for ; Fri, 27 Aug 2004 00:29:19 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23880-08 for ; Fri, 27 Aug 2004 03:29:23 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 752B35E37D0 for ; Fri, 27 Aug 2004 00:29:15 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i7R3TMLr005708; Thu, 26 Aug 2004 23:29:22 -0400 (EDT) To: kris pal Cc: pgsql-admin@postgresql.org Subject: Re: regression database In-reply-to: <20040826211532.30654.qmail@web61308.mail.yahoo.com> References: <20040826211532.30654.qmail@web61308.mail.yahoo.com> Comments: In-reply-to kris pal message dated "Thu, 26 Aug 2004 14:15:32 -0700" Date: Thu, 26 Aug 2004 23:29:21 -0400 Message-ID: <5707.1093577361@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/270 X-Sequence-Number: 14665 kris pal writes: > Actually I just noticed something. Previously for some reason, I > thought the data directory corresponded to 'regression'. But I double > checked it now with oid2name and it corresponds to our main database > say "dds". Ah, that makes more sense. > But the issue still remains. In the sense that pg_attribute etc are > still so huge and I have no idea why. Probably because you've created and deleted a lot of tables (does your app use temp tables a lot?). If you aren't good about vacuuming the system catalogs then you're going to get table bloat. If you're using something pre-7.4 then you may get index bloat even if you *are* vacuuming regularly :-(. My suggestions are to update to 7.4, if you're not there already (if you are, you may need to do VACUUM FULL and REINDEX to get rid of the bloat); then adopt a stricter regime of routine vacuuming. And check your FSM settings. regards, tom lane