#! /bin/sh

# Taken from http://wiki.openstreetmap.org/wiki/Nominatim/Installation
cat >> ${PGDATA}/postgresql.conf <<EOF
shared_buffers = 1GB
maintenance_work_mem = 5GB
work_mem = 25MB
effective_cache_size = 12GB
synchronous_commit = off
checkpoint_timeout = 10min
checkpoint_completion_target = 0.9
fsync = off
full_page_writes = off
max_wal_size = 1GB
min_wal_size = 80MB
EOF

#! /bin/sh

# Taken from http://wiki.openstreetmap.org/wiki/Nominatim/Installation
cat >> ${PGDATA}/postgresql.conf <<EOF
shared_buffers = 1GB
maintenance_work_mem = 5GB
work_mem = 25MB
effective_cache_size = 12GB
synchronous_commit = off
checkpoint_timeout = 10min
checkpoint_completion_target = 0.9
fsync = off
full_page_writes = off
max_wal_size = 4GB
min_wal_size = 1GB
EOF

Increase wal_size above default values
Increase wal_size above default values
