Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6IFo1a17474 for ; Wed, 18 Jul 2001 11:50:01 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f6IFmxC05145; Wed, 18 Jul 2001 11:48:59 -0400 (EDT) To: Robert.Farrugia@go.com.mt cc: pgsql-admin@postgresql.org Subject: Re: Requirements for a database server In-reply-to: References: Comments: In-reply-to Robert.Farrugia@go.com.mt message dated "Wed, 18 Jul 2001 07:52:37 +0200" Date: Wed, 18 Jul 2001 11:48:59 -0400 Message-ID: <5142.995471339@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200107/99 X-Sequence-Number: 1857 Robert.Farrugia@go.com.mt writes: > I have been using postgres for the last year now. The database has grown > from a mere few MBs to over 100GB data and expected to top up 300GB by the > end of the year. Lately performance of queries, inserts, updates has > continued to grow worse as the dataset has grown larger, even though most > queries have indexes on them, while vacuuming the database has become a > nightmare. Have you tried dropping and rebuilding the indexes? Currently, PG doesn't reclaim dead space in indexes very effectively, so the indexes on a frequently-updated table tend to grow without bound. (I may or may not be able to fix this for 7.2 --- it's next on my to-look-at list, but no promises.) In the meantime, an occasional rebuild may help restore performance. BTW, the vacuuming issue is pretty well fixed for 7.2 ... regards, tom lane