Received: from kaxxa.go.com.mt ([194.158.48.3]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6J5dna62578 for ; Thu, 19 Jul 2001 01:39:49 -0400 (EDT) (envelope-from Robert.Farrugia@go.com.mt) Received: from jupiter.go.com.mt (jupiter [194.158.48.95]) by kaxxa.go.com.mt (8.9.3/8.8.7) with ESMTP id IAA24878; Thu, 19 Jul 2001 08:46:05 +0200 Subject: Re: Requirements for a database server To: Tom Lane Cc: pgsql-admin@postgresql.org X-Mailer: Lotus Notes Release 5.0.7 March 21, 2001 Message-ID: From: Robert.Farrugia@go.com.mt Date: Thu, 19 Jul 2001 07:38:25 +0200 X-MIMETrack: Serialize by Router on Jupiter/MobIsle(Release 5.0.7 |March 21, 2001) at 07/19/2001 07:39:07 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Archive-Number: 200107/102 X-Sequence-Number: 1860 Since I have a number of heavy inserts per day, dropping the indexes and recreating them could be an option. Only problem I see is that to recreate them they take alot of time, at which queries will be tremendously slow. regarsd Robert Tom Lane cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Requirements for a database server 18/07/2001 17:48 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