pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Missner, T. R. <T.R.Missner@Level3.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: inserting into brand new database faster than old database
Date: Fri, 09 Jul 2004 22:52:04 -0400
Message-ID: <2000.1089427924@sss.pgh.pa.us> (raw)
In-Reply-To: <F67BE6C5DEBB8340A749DE01B476FEC103E4D3BC@idc1exc0002.corp.global.level3.com>
References: <F67BE6C5DEBB8340A749DE01B476FEC103E4D3BC@idc1exc0002.corp.global.level3.com>

"Missner, T. R." <T.R.Missner@Level3.com> writes:
> ... Each day a brand new set of tables is
> created and eventually the old tables are dropped.

You did not say which PG version you are using (tut tut) but my first
thought is that it's a pre-7.4 release and your problems trace to bloat
in the system-catalog indexes.  The indexes on pg_class and pg_attribute
would be quite likely to suffer serious bloat if you continually create
and drop tables, because the range of useful table OIDs will be
continually shifting.  We didn't fix this until 7.4.

If you are seeing this in 7.4.* then more investigation is needed...

			regards, tom lane



view thread (5+ messages)

Message-ID: <2000.1089427924@sss.pgh.pa.us>
Permalink:  ../2000.1089427924@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2000.1089427924@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, T.R.Missner@Level3.com
  Subject: Re: inserting into brand new database faster than old database
  In-Reply-To: <2000.1089427924@sss.pgh.pa.us>

* 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