X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id ED8D2D1B53B for ; Thu, 9 Oct 2003 20:33:14 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 22460-05 for ; Thu, 9 Oct 2003 17:32:30 -0300 (ADT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by svr1.postgresql.org (Postfix) with ESMTP id BEB35D1B4EF for ; Thu, 9 Oct 2003 17:32:27 -0300 (ADT) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 1A7hSX-0002K5-00 for ; Thu, 09 Oct 2003 16:32:29 -0400 Received: by dba2 (Postfix, from userid 1019) id 9E391CD6B; Thu, 9 Oct 2003 16:32:29 -0400 (EDT) Date: Thu, 9 Oct 2003 16:32:29 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: What is pg_attribute_relid_attnam_index? Message-ID: <20031009203229.GR14394@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: <3F855B2E.7000204@aeccom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F855B2E.7000204@aeccom.com> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/103 X-Sequence-Number: 10664 On Thu, Oct 09, 2003 at 02:57:18PM +0200, Dirk Lutzeb?ck wrote: > Hi, > > can somebody please explain what these two system indexes are: > > pg_attribute_relid_attnam_index This is on the attribute ('column' for ease of thinking) name and relation oid on the pg_attribute table. > pg_attribute_relid_attnum_index And this the same, only attribute number. > the first one is the largest relation in terms of relpages in my > database. The latter comes at the third. Why are they so big? Have you done a lot of work (adding tables, or temp tables especially) to your database without doing VACUUM? If you go to single user mode and REINDEX that table you might find it helps. Otherwise, I doubt they should be so large as a percentage, unless you have an empty database with lots of columns with long names. A -- ---- Andrew Sullivan 204-4141 Yonge Street Afilias Canada Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110