-
Notifications
You must be signed in to change notification settings - Fork 10
/
postgresql.conf
51 lines (40 loc) · 1.26 KB
/
postgresql.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
listen_addresses = '*'
port = 5400
default_transaction_isolation = 'read uncommitted'
# Memory
# https://pgtune.leopard.in.ua/
shared_buffers = 45MB
effective_cache_size = 135MB
maintenance_work_mem = 11520kB
# Checkpoints
checkpoint_completion_target = 0.9
fsync = off
full_page_writes = off
row_security = off
commit_delay = 100000
commit_siblings = 50
# Write Ahead Log
synchronous_commit = off
wal_writer_delay = '10ms'
max_wal_senders = 0
wal_sender_timeout = 0
wal_level = minimal
# Planner
random_page_cost = 1.1 # Set lower if using SSDs to reflect their faster random access
effective_io_concurrency = 1 # Increase if your storage supports multiple concurrent I/O operations
# Lock Management
deadlock_timeout = '500ms' # Reduce the time to detect deadlock situations
max_locks_per_transaction = 64 # Adjust based on your application's locking requirements
# Logging
log_min_duration_statement = '10s'
log_checkpoints = off
log_statement = 'none'
log_error_verbosity = terse
log_min_messages = panic
logging_collector = off
log_directory = '/dev/null'
log_min_error_statement = panic
client_min_messages = error
debug_pretty_print = off
# Autovacuum
autovacuum = off # Enable autovacuum for automatic maintenance