pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rodrigo Moreno <rodrigo.miguel@terra.com.br>
Cc: pgsql-performance@postgresql.org
Subject: Re: RES: Degradation of postgres 7.4.5 on FreeBSD/CygWin
Date: Fri, 18 Feb 2005 09:59:52 -0500
Message-ID: <18065.1108738792@sss.pgh.pa.us> (raw)
In-Reply-To: <KMEJIOKLKEBIECAIJKPKMENOCAAA.rodrigo.miguel@terra.com.br>
References: <KMEJIOKLKEBIECAIJKPKMENOCAAA.rodrigo.miguel@terra.com.br>

"Rodrigo Moreno" <rodrigo.miguel@terra.com.br> writes:
> max_fsm_pages = 40000
> max_fsm_relations = 2000

> But why after 2 months the database has 1.3gb and after reimport on 900mb ?

40k pages = 320M bytes = 1/3rd of your database.  Perhaps you need a
larger setting for max_fsm_pages.

However, 30% bloat of the database doesn't particularly bother me,
especially when you are using infrequent vacuums.  Bear in mind that,
for example, the steady-state fill factor of a b-tree index is usually
estimated at less than 70%.  A certain amount of wasted space is not
only intended, but essential for reasonable performance.

What you need is to take a more detailed look at the behavior of that
function that's getting so slow.  Are the query plans changing?  Is
the loop iterating over many more rows than before?  You haven't told
us anything that would account for 100x slowdown.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <18065.1108738792@sss.pgh.pa.us>
Permalink:  ../18065.1108738792@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18065.1108738792@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, rodrigo.miguel@terra.com.br
  Subject: Re: RES: Degradation of postgres 7.4.5 on FreeBSD/CygWin
  In-Reply-To: <18065.1108738792@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