82 lines
2.8 KiB
Plaintext
82 lines
2.8 KiB
Plaintext
# PostgreSQL Configuration for RuVector Development/Testing
|
|
# Optimized for vector operations and development workflow
|
|
|
|
# =============================================================================
|
|
# Memory Settings
|
|
# =============================================================================
|
|
shared_buffers = 256MB
|
|
effective_cache_size = 1GB
|
|
work_mem = 64MB
|
|
maintenance_work_mem = 256MB
|
|
|
|
# =============================================================================
|
|
# Checkpoint Settings
|
|
# =============================================================================
|
|
checkpoint_completion_target = 0.9
|
|
wal_buffers = 16MB
|
|
min_wal_size = 1GB
|
|
max_wal_size = 4GB
|
|
|
|
# =============================================================================
|
|
# Connection Settings
|
|
# =============================================================================
|
|
max_connections = 100
|
|
listen_addresses = '*'
|
|
|
|
# =============================================================================
|
|
# Logging
|
|
# =============================================================================
|
|
log_destination = 'stderr'
|
|
logging_collector = on
|
|
log_directory = 'log'
|
|
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
|
|
log_rotation_age = 1d
|
|
log_rotation_size = 100MB
|
|
log_min_messages = info
|
|
log_min_error_statement = error
|
|
log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h '
|
|
log_checkpoints = on
|
|
log_connections = on
|
|
log_disconnections = on
|
|
log_lock_waits = on
|
|
log_statement = 'ddl'
|
|
log_temp_files = 0
|
|
|
|
# =============================================================================
|
|
# Development Settings
|
|
# =============================================================================
|
|
# More verbose error messages for development
|
|
client_min_messages = notice
|
|
debug_print_parse = off
|
|
debug_print_rewritten = off
|
|
debug_print_plan = off
|
|
debug_pretty_print = on
|
|
|
|
# =============================================================================
|
|
# Performance Settings
|
|
# =============================================================================
|
|
random_page_cost = 1.1
|
|
effective_io_concurrency = 200
|
|
default_statistics_target = 100
|
|
|
|
# Enable parallel query
|
|
max_parallel_workers_per_gather = 2
|
|
max_parallel_workers = 4
|
|
max_parallel_maintenance_workers = 2
|
|
parallel_setup_cost = 100
|
|
parallel_tuple_cost = 0.01
|
|
|
|
# =============================================================================
|
|
# Extension Settings
|
|
# =============================================================================
|
|
# Preload shared libraries (if needed)
|
|
# shared_preload_libraries = ''
|
|
|
|
# =============================================================================
|
|
# JIT Settings
|
|
# =============================================================================
|
|
jit = on
|
|
jit_above_cost = 100000
|
|
jit_inline_above_cost = 500000
|
|
jit_optimize_above_cost = 500000
|