// 免費參考資料

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.

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.

作業 PostgreSQL MySQL SQL Server Oracle SQLite
Main data cache shared_buffers 預設 128MB innodb_buffer_pool_size 預設 128MB max server memory (MB) 預設 2147483647 sga_target 預設 0 cache_size 預設 -2000 (about 2MB)
Sort and hash work memory work_mem 預設 4MB sort_buffer_size 預設 256KB – pga_aggregate_target 預設 10MB or 20% of SGA –
Connection limit max_connections 預設 100 max_connections 預設 151 user connections 預設 0 (= 32767) processes 預設 Set at creation –
CPUs per query max_parallel_workers_per_gather 預設 2 – max degree of parallelism 預設 0 parallel_degree_policy 預設 MANUAL –
What a COMMIT waits for synchronous_commit 預設 on innodb_flush_log_at_trx_commit 預設 1 DELAYED_DURABILITY 預設 DISABLED – synchronous 預設 2 (FULL)
Checkpoint pacing max_wal_size 預設 1GB innodb_redo_log_capacity 預設 100MB TARGET_RECOVERY_TIME 預設 60 SECONDS fast_start_mttr_target 預設 0 wal_autocheckpoint 預設 1000 pages
Statement time limit statement_timeout 預設 0 (disabled) max_execution_time 預設 0 (disabled) – – –
Lock wait limit lock_timeout 預設 0 (disabled) innodb_lock_wait_timeout 預設 50 LOCK_TIMEOUT 預設 -1 (wait forever) – busy_timeout 預設 0
Slow query logging log_min_duration_statement 預設 -1 (disabled) long_query_time 預設 10 QUERY_STORE 預設 ON (READ_WRITE) – –

Every setting, by engine

182 settings 按 / to search

PostgreSQL 52

MySQL 47

SQL Server 37

Oracle 28

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.

// see what your server is running with

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.