X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7D89ED1B4E6 for ; Tue, 21 Oct 2003 16:43:48 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 04204-03 for ; Tue, 21 Oct 2003 13:43:18 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 7154AD1B51E for ; Tue, 21 Oct 2003 13:43:17 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h9LGgtit004251; Tue, 21 Oct 2003 12:42:55 -0400 (EDT) To: Seum-Lim Gan Cc: Josh Berkus , pgsql-performance@postgresql.org Subject: Re: index file bloating still in 7.4 ? In-reply-to: References: <19692.1066578442@sss.pgh.pa.us> <200310191204.23888.josh@agliodbs.com> <15841.1066685113@sss.pgh.pa.us> Comments: In-reply-to Seum-Lim Gan message dated "Tue, 21 Oct 2003 11:25:33 -0500" Date: Tue, 21 Oct 2003 12:42:55 -0400 Message-ID: <4250.1066754575@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/536 X-Sequence-Number: 4284 Seum-Lim Gan writes: > We did a few (like 5 to 8 times) vacuum analyze (no full), the > pg_statistics relfilenode grew. Well, sure. ANALYZE puts new rows into pg_statistic, and obsoletes old ones. You need to vacuum pg_statistic every so often (not to mention the other system catalogs). > If we do plain simple "vacuum " (again no full), we see > pg_statistics_relid_att_index relfilenode grew instead of > pg_statistics. Don't think I believe that. Plain vacuum won't touch pg_statistic at all (unless it's the target table of course). I'd expect ANALYZE to make both the stats table and its index grow, though. regards, tom lane