Database configuration reference
182 server settings across five engines. Each page gives the default for the current release, whether a change needs a restart, and the SQL to read and change it.
Pick an engine
-
PostgreSQL
postgresql.conf parameters (GUCs). Read them with SHOW or pg_settings, change them with ALTER SYSTEM or SET, and check pg_settings.context to see whether a reload or a restart applies them.
-
MySQL
System variables. Read them with SHOW VARIABLES or performance_schema, change dynamic ones with SET GLOBAL or SET PERSIST, and stage read-only ones with SET PERSIST_ONLY before a restart. MySQL 8.4 changed several InnoDB defaults; each page says which.
-
SQL Server
Three layers: instance options in sp_configure, per-database options in ALTER DATABASE ... SET, and per-database optimizer switches in ALTER DATABASE SCOPED CONFIGURATION. Most are dynamic after RECONFIGURE; sys.configurations.is_dynamic says which are not.
-
Oracle
Initialization parameters, stored in the SPFILE. Read them with SHOW PARAMETER or V$PARAMETER, change them with ALTER SYSTEM SET ... SCOPE=, and check ISSYS_MODIFIABLE: FALSE means SCOPE=SPFILE and a restart.
-
SQLite
PRAGMA statements. Most apply to the current connection only and reset when it closes, so apps set them on every open; journal_mode=WAL, page_size and auto_vacuum are stored in the database file.
The same job on each engine
Engines split the work differently, so these are the closest matches, not exact equivalents. A dash means this reference has no matching setting on that engine.
| Job | PostgreSQL | MySQL | SQL Server | Oracle | SQLite |
|---|---|---|---|---|---|
| Main data cache |
shared_buffers
Default 128MB
|
innodb_buffer_pool_size
Default 128MB
|
max server memory (MB)
Default 2147483647
|
sga_target
Default 0
|
cache_size
Default -2000 (about 2MB)
|
| Sort and hash work memory |
work_mem
Default 4MB
|
sort_buffer_size
Default 256KB
|
– |
pga_aggregate_target
Default 10MB or 20% of SGA
|
– |
| Connection limit |
max_connections
Default 100
|
max_connections
Default 151
|
user connections
Default 0 (= 32767)
|
processes
Default Set at creation
|
– |
| CPUs per query |
max_parallel_workers_per_gather
Default 2
|
– |
max degree of parallelism
Default 0
|
parallel_degree_policy
Default MANUAL
|
– |
| What a COMMIT waits for |
synchronous_commit
Default on
|
innodb_flush_log_at_trx_commit
Default 1
|
DELAYED_DURABILITY
Default DISABLED
|
– |
synchronous
Default 2 (FULL)
|
| Checkpoint pacing |
max_wal_size
Default 1GB
|
innodb_redo_log_capacity
Default 100MB
|
TARGET_RECOVERY_TIME
Default 60 SECONDS
|
fast_start_mttr_target
Default 0
|
wal_autocheckpoint
Default 1000 pages
|
| Statement time limit |
statement_timeout
Default 0 (disabled)
|
max_execution_time
Default 0 (disabled)
|
– | – | – |
| Lock wait limit |
lock_timeout
Default 0 (disabled)
|
innodb_lock_wait_timeout
Default 50
|
LOCK_TIMEOUT
Default -1 (wait forever)
|
– |
busy_timeout
Default 0
|
| Slow query logging |
log_min_duration_statement
Default -1 (disabled)
|
long_query_time
Default 10
|
QUERY_STORE
Default ON (READ_WRITE)
|
– | – |
Every setting, by engine
No setting matched. Try a topic such as memory, log or timeout.
PostgreSQL 52
shared_bufferseffective_cache_sizework_memhash_mem_multipliermaintenance_work_memautovacuum_work_memtemp_buffershuge_pagesmax_connectionssuperuser_reserved_connectionsreserved_connectionsmax_worker_processesmax_parallel_workersmax_parallel_workers_per_gathermax_parallel_maintenance_workerswal_levelsynchronous_commitwal_bufferswal_compressionfull_page_writesmax_slot_wal_keep_sizemax_wal_sizemin_wal_sizecheckpoint_timeoutcheckpoint_completion_targetio_methodeffective_io_concurrencyautovacuumautovacuum_max_workersautovacuum_naptimeautovacuum_vacuum_scale_factorautovacuum_analyze_scale_factorautovacuum_vacuum_cost_limitautovacuum_freeze_max_agedefault_statistics_targetrandom_page_costjitstatement_timeoutlock_timeoutidle_in_transaction_session_timeouttransaction_timeoutdeadlock_timeoutlog_min_duration_statementlog_lock_waitslog_checkpointslog_autovacuum_min_durationlog_temp_filestrack_io_timingtemp_file_limitshared_preload_librariesmax_locks_per_transactionlisten_addresses
MySQL 47
innodb_buffer_pool_sizeinnodb_buffer_pool_instancesinnodb_dedicated_servertmp_table_sizemax_heap_table_sizesort_buffer_sizejoin_buffer_sizemax_connectionsthread_cache_sizetable_open_cachetable_definition_cachemax_allowed_packetmax_connect_errorsinnodb_parallel_read_threadsreplica_parallel_workersinnodb_redo_log_capacityinnodb_log_buffer_sizeinnodb_flush_log_at_trx_commitsync_binloglog_binbinlog_expire_logs_secondsinnodb_io_capacityinnodb_io_capacity_maxinnodb_flush_methodinnodb_flush_neighborsinnodb_read_io_threadsinnodb_write_io_threadsinnodb_page_cleanersinnodb_change_bufferinginnodb_purge_threadsinnodb_adaptive_hash_indexwait_timeoutinteractive_timeoutinnodb_lock_wait_timeoutlock_wait_timeoutmax_execution_timeslow_query_loglong_query_timelog_slow_extrainnodb_print_all_deadlocksperformance_schematemptable_max_ramsql_modetransaction_isolationinnodb_deadlock_detectinnodb_autoinc_lock_modeskip_name_resolve
SQL Server 37
max server memory (MB)min server memory (MB)min memory per query (KB)optimize for ad hoc workloadsuser connectionsmax worker threadsmax degree of parallelismcost threshold for parallelismMAXDOPRECOVERYDELAYED_DURABILITYbackup checksum defaultTARGET_RECOVERY_TIMErecovery interval (min)ACCELERATED_DATABASE_RECOVERYFILEGROWTHbackup compression defaultAUTO_UPDATE_STATISTICSAUTO_UPDATE_STATISTICS_ASYNCAUTO_SHRINKCOMPATIBILITY_LEVELLEGACY_CARDINALITY_ESTIMATIONPARAMETER_SNIFFINGQUERY_OPTIMIZER_HOTFIXESLOCK_TIMEOUTremote query timeout (s)query governor cost limitQUERY_STOREblocked process threshold (s)tempdb data filestempdb metadata memory-optimizedREAD_COMMITTED_SNAPSHOTALLOW_SNAPSHOT_ISOLATIONremote admin connectionsxp_cmdshellclr enabledcontained database authentication
Oracle 28
memory_targetsga_targetsga_max_sizepga_aggregate_targetpga_aggregate_limituse_large_pagesprocessessessionsopen_cursorssession_cached_cursorsparallel_max_serversparallel_degree_policylog_bufferundo_retentiondb_recovery_file_dest_sizefast_start_mttr_targetdb_writer_processesfilesystemio_optionsdb_block_sizejob_queue_processesoptimizer_modeoptimizer_adaptive_plansoptimizer_adaptive_statisticscursor_sharingresult_cache_modemax_idle_timeddl_lock_timeoutstatistics_level
SQLite 18
Database configuration FAQ
Which settings are covered?
The ones that change performance or behavior on a real server: memory, connections, parallelism, WAL and redo, checkpoints, vacuum and statistics, timeouts, logging and temporary storage. Each setting page lists its default, its allowed range, its restart rule and the statements that read and change it.
Which versions do the defaults apply to?
PostgreSQL 18, MySQL 8.4 LTS, SQL Server 2025, Oracle 23ai/26ai and current SQLite 3.5x. Where a default changed in a recent release, such as MySQL 8.4's InnoDB defaults or PostgreSQL 18's effective_io_concurrency, the page says which version changed it.
How were the defaults checked?
Against running servers: pg_settings on PostgreSQL 18, performance_schema.variables_info on MySQL 8.4, sys.configurations on SQL Server 2025, V$PARAMETER on Oracle AI Database 26ai Free (release 23.26) and PRAGMA on SQLite. Where a container image ships a value different from the vendor default, the page names both.
Should I change these settings on a managed cloud database?
Many apply, but through the provider's parameter groups or flags rather than ALTER SYSTEM or sp_configure, and some are locked. Defaults on managed services also differ: Azure SQL Database turns READ_COMMITTED_SNAPSHOT on, and RDS sizes buffer pools from the instance class.
Query the settings, then change them
SQLly connects to PostgreSQL, MySQL, SQL Server, Oracle and SQLite, runs the queries from these pages against your own server, and shows the results in a grid you can sort and filter.