--- /var/lib/pgsql/data/postgresql.conf.orig    2008-03-21 11:51:45.000000000 -0400
+++ /var/lib/pgsql/data/postgresql.conf 2008-03-21 21:04:38.000000000 -0400
@@ -90,19 +90,19 @@
 
 # - Memory -
 
-shared_buffers = 1000                  # min 16 or max_connections*2, 8KB each
-#temp_buffers = 1000                   # min 100, 8KB each
-#max_prepared_transactions = 5         # can be 0 or more
+shared_buffers = 50000                 # min 16 or max_connections*2, 8KB each
+temp_buffers = 10000                   # min 100, 8KB each
+max_prepared_transactions = 100                # can be 0 or more
 # note: increasing max_prepared_transactions costs ~600 bytes of shared memory
 # per transaction slot, plus lock space (see max_locks_per_transaction).
-#work_mem = 1024                       # min 64, size in KB
-#maintenance_work_mem = 16384          # min 1024, size in KB
+work_mem = 2048                                # min 64, size in KB
+maintenance_work_mem = 131072          # min 1024, size in KB
 #max_stack_depth = 2048                        # min 100, size in KB
 
 # - Free Space Map -
 
-#max_fsm_pages = 20000                 # min max_fsm_relations*16, 6 bytes each
-#max_fsm_relations = 1000              # min 100, ~70 bytes each
+max_fsm_pages = 200000                 # min max_fsm_relations*16, 6 bytes each
+max_fsm_relations = 10000              # min 100, ~70 bytes each
 
 # - Kernel Resource Usage -
 
@@ -111,11 +111,11 @@
 
 # - Cost-Based Vacuum Delay -
 
-#vacuum_cost_delay = 0                 # 0-1000 milliseconds
-#vacuum_cost_page_hit = 1              # 0-10000 credits
+vacuum_cost_delay = 200                        # 0-1000 milliseconds
+vacuum_cost_page_hit = 6               # 0-10000 credits
 #vacuum_cost_page_miss = 10            # 0-10000 credits
 #vacuum_cost_page_dirty = 20           # 0-10000 credits
-#vacuum_cost_limit = 200               # 0-10000 credits
+vacuum_cost_limit = 100                        # 0-10000 credits
 
 # - Background writer -
 
@@ -141,13 +141,13 @@
                                        #   fsync_writethrough
                                        #   open_sync
 #full_page_writes = on                 # recover from partial page writes
-#wal_buffers = 8                       # min 4, 8KB each
+wal_buffers = 128                      # min 4, 8KB each
 #commit_delay = 0                      # range 0-100000, in microseconds
 #commit_siblings = 5                   # range 1-1000
 
 # - Checkpoints -
 
-#checkpoint_segments = 3               # in logfile segments, min 1, 16MB each
+checkpoint_segments = 192              # in logfile segments, min 1, 16MB each
 #checkpoint_timeout = 300              # range 30-3600, in seconds
 #checkpoint_warning = 30               # in seconds, 0 is off
 
@@ -175,12 +175,12 @@
 
 # - Planner Cost Constants -
 
-#effective_cache_size = 1000           # typically 8KB each
-#random_page_cost = 4                  # units are one sequential page fetch 
+effective_cache_size = 393216          # typically 8KB each
+random_page_cost = 2                   # units are one sequential page fetch 
                                        # cost
-#cpu_tuple_cost = 0.01                 # (same)
-#cpu_index_tuple_cost = 0.001          # (same)
-#cpu_operator_cost = 0.0025            # (same)
+cpu_tuple_cost = 0.002                 # (same)
+cpu_index_tuple_cost = 0.0002          # (same)
+cpu_operator_cost = 0.0005             # (same)
 
 # - Genetic Query Optimizer -
 
@@ -329,10 +329,10 @@
 
 # - Query/Index Statistics Collector -
 
-#stats_start_collector = on
-#stats_command_string = off
-#stats_block_level = off
-#stats_row_level = off
+stats_start_collector = on
+stats_command_string = on
+stats_block_level = on
+stats_row_level = on
 #stats_reset_on_server_start = off
 
 
@@ -340,8 +340,8 @@
 # AUTOVACUUM PARAMETERS
 #---------------------------------------------------------------------------
 
-#autovacuum = off                      # enable autovacuum subprocess?
+autovacuum = on                                # enable autovacuum subprocess?
 #autovacuum_naptime = 60               # time between autovacuum runs, in secs
 #autovacuum_vacuum_threshold = 1000    # min # of tuple updates before
                                        # vacuum
 #autovacuum_analyze_threshold = 500    # min # of tuple updates before 
@@ -400,7 +400,7 @@
 #---------------------------------------------------------------------------
 
 #deadlock_timeout = 1000               # in milliseconds
-#max_locks_per_transaction = 64                # min 10
+max_locks_per_transaction = 512                # min 10
 # note: each lock table slot uses ~220 bytes of shared memory, and there are
 # max_locks_per_transaction * (max_connections + max_prepared_transactions)
 # lock table slots.
