Unix Technical Forum

index bloat problem

This is a discussion on index bloat problem within the Pgsql General forums, part of the PostgreSQL category; --> I use Postgres 8.1 on linux I have several tables to which I need insert about 200-500 records per ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 03:31 PM
Monika Cernikova
 
Posts: n/a
Default index bloat problem

I use Postgres 8.1 on linux
I have several tables to which I need insert about 200-500 records per
minute.
Records contains timestamp (actual time), and this timestamp is part of
primary key and index.
I need to keep data for 1 month. I daily delete data older than 1 month
and than run vacuum analyze.
Size of primary keys and indexes still grows.
(After 2 months database size is about 35G and vacuum runs about 20 hours.
When I dumped and restored database, new size was 25G. Indexes and
constraints had half size)

Can you help me how to stop index growing or reindex database if I CAN'T
STOP writing records?

Thanx,

Monika

Here are my settings in postgresql.conf, that differs from defaults

shared_buffers = 2000

max_fsm_pages = 400000
(it isn't much, but there isn't logged in vacuum log that it needs more)

vacuum_cost_delay = 100
vacuum_cost_page_hit = 6
vacuum_cost_limit = 100

wal_buffers = 16
checkpoint_segments = 8

autovacuum = off


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com