pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-admin@postgresql.org
Subject: Re: What is pg_attribute_relid_attnam_index?
Date: Thu, 9 Oct 2003 16:32:29 -0400
Message-ID: <20031009203229.GR14394@libertyrms.info> (raw)
In-Reply-To: <3F855B2E.7000204@aeccom.com>
References: <3F855B2E.7000204@aeccom.com>

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
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




view thread (2+ messages)

Message-ID: <20031009203229.GR14394@libertyrms.info>
Permalink:  ../20031009203229.GR14394@libertyrms.info/
Also on:    postgresql.org/message-id/20031009203229.GR14394@libertyrms.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: andrew@libertyrms.info
  Subject: Re: What is pg_attribute_relid_attnam_index?
  In-Reply-To: <20031009203229.GR14394@libertyrms.info>
  References: <3F855B2E.7000204@aeccom.com> <20031009203229.GR14394@libertyrms.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox