Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# RuDB package profile. Applied to postgresql.conf at package build time.
# Later assignments win, so this block overrides initdb autoconfig.
 
# Connections and locks
max_connections = 100
max_locks_per_transaction = 256
max_files_per_process = 1000
 
# Memory
shared_buffers = 1GB
effective_cache_size = 3GB
work_mem = 8MB
temp_buffers = 8MB
maintenance_work_mem = 256MB
autovacuum_work_mem = 64MB
 
# Autovacuum
autovacuum = on
autovacuum_max_workers = 4
autovacuum_worker_slots = 4
autovacuum_naptime = 20s
autovacuum_vacuum_scale_factor = 0.01
autovacuum_analyze_scale_factor = 0.005
autovacuum_vacuum_insert_scale_factor = 0.01
autovacuum_vacuum_cost_delay = 10ms
autovacuum_vacuum_cost_limit = 800
 
# Planner
jit = off
from_collapse_limit = 20
join_collapse_limit = 20
max_parallel_workers_per_gather = 0
random_page_cost = 1.1
 
# Background writer
bgwriter_delay = 20ms
bgwriter_lru_maxpages = 500
bgwriter_lru_multiplier = 4.0
 
# Durability and checkpoints
fsync = on
full_page_writes = on
synchronous_commit = on
commit_delay = 0
wal_level = replica
max_wal_senders = 5
min_wal_size = 1GB
max_wal_size = 2GB
checkpoint_timeout = 10min
checkpoint_completion_target = 0.9
 
# Diagnostics
track_activity_query_size = 10kB
log_checkpoints = on
log_lock_waits = on
log_temp_files = 102400
 
# 1C modules
shared_preload_libraries = 'mchar, fasttrun, fulleq, online_analyze, plantuner'
online_analyze.enable = on
online_analyze.table_type = 'temporary'
online_analyze.local_tracking = on
online_analyze.verbose = off
plantuner.fix_empty_table = on
 
row_security = off
 
# temporary-table features
enable_temp_memory_catalog = off
enable_temp_rd_buffers = off