Parâmetros de configuração
Parâmetros de bootstrap, lidos de amphi.conf antes de o servidor subir. Os marcados reinício só têm efeito ao reiniciar; os demais valem após recarregar.
locks
max_row_locks
Most row locks the lock table holds at once. A statement past it fails with SQLSTATE 53200.
- Tipo: inteiro, 1 a 1000000000
- Padrão:
1000000 - Aplica-se em: reinício
transactions
max_prepared_transactions
Maximum two-phase transactions kept prepared at once. Zero disables PREPARE TRANSACTION.
- Tipo: inteiro, 0 a 1000000
- Padrão:
0 - Aplica-se em: reinício
default_commit_durability
Default local WAL acknowledgement policy for ordinary DML commits. Async commits can be lost after a crash.
- Tipo: um de: local, async
- Padrão:
local - Aplica-se em: reinício
storage
wal_writer_delay
Maximum normal delay between WAL writer flush attempts for async commits.
- Tipo: duração, 1ms a 1min
- Padrão:
200ms - Aplica-se em: reinício
wal_dir
Directory for WAL segments; empty means <data_dir>/wal. Put it on its own disk.
- Tipo: texto
- Padrão:
'' - Aplica-se em: reinício
shared_buffers
Size of the buffer pool.
- Tipo: tamanho, 128kB a 1024TB
- Padrão:
128MB - Aplica-se em: reinício
checkpoint_batch_pages
Pages the continuous checkpointer writes per normal step. Benchmark this starting point on the storage in use.
- Tipo: inteiro, 1 a 1000000
- Padrão:
64 - Aplica-se em: reinício
checkpoint_timeout
Maximum time between published continuous checkpoints. This is a starting recommendation; benchmark it on the storage in use.
- Tipo: duração, 100ms a 1d
- Padrão:
5min - Aplica-se em: reinício
bgwriter_delay
Delay between continuous checkpointer steps. This is a starting recommendation; benchmark it on the storage in use.
- Tipo: duração, 1ms a 1min
- Padrão:
200ms - Aplica-se em: reinício
max_recovery_wal
Preferred maximum distance between the published redo point and the WAL end before the checkpointer catches up.
- Tipo: tamanho, 1MB a 1024TB
- Padrão:
64MB - Aplica-se em: reinício
checkpoint_min_publish_advance
Minimum redo advance before publishing a checkpoint, unless the checkpointer is urgent.
- Tipo: tamanho, 1B a 1024TB
- Padrão:
1MB - Aplica-se em: reinício
checkpoint_dirty_target
Target dirty-buffer share in per mille; above it the checkpointer accelerates.
- Tipo: inteiro, 1 a 999
- Padrão:
300 - Aplica-se em: reinício
checkpoint_dirty_trigger
Dirty-buffer share in per mille at which writer pressure is reported.
- Tipo: inteiro, 1 a 1000
- Padrão:
600 - Aplica-se em: reinício
autovacuum
Whether the server vacuums, on its own, the tables whose dead rows pass the threshold.
- Tipo: on/off
- Padrão:
on - Aplica-se em: reinício
autovacuum_naptime
Time between two autovacuum passes over the tables.
- Tipo: duração, 10ms a 1h
- Padrão:
1min - Aplica-se em: reinício
autovacuum_vacuum_threshold
Dead rows a table must pass, besides the scale percent of its live rows, before autovacuum vacuums it.
- Tipo: inteiro, 0 a 1000000000
- Padrão:
50 - Aplica-se em: reinício
autovacuum_vacuum_scale_percent
Percent of the live rows that autovacuum adds to the threshold (the scale factor, as a percent).
- Tipo: inteiro, 0 a 100
- Padrão:
20 - Aplica-se em: reinício
vacuum_cost_limit
Cost an autovacuum may accumulate before it pauses for vacuum_cost_delay. A page read costs 1, a page it changes 20 more.
- Tipo: inteiro, 1 a 10000
- Padrão:
200 - Aplica-se em: reinício
vacuum_cost_delay
Pause an autovacuum takes once it has spent vacuum_cost_limit.
- Tipo: duração, 1ms a 100ms
- Padrão:
2ms - Aplica-se em: reinício
stats_flush_interval
How often the table statistics (sys.stat_user_tables) are stored. A crash loses at most one interval of them.
- Tipo: duração, 10ms a 1h
- Padrão:
1s - Aplica-se em: reinício
network
port
Port
- Tipo: inteiro, 1 a 65535
- Padrão:
26744 - Aplica-se em: reinício
listen_addresses
Comma-separated addresses to listen on. Loopback only until you opt in.
- Tipo: texto
- Padrão:
127.0.0.1 - Aplica-se em: reinício
tls_mode
TLS transport policy. required loads the configured certificate and key and requires TLS before startup.
- Tipo: um de: disabled, required
- Padrão:
disabled - Aplica-se em: reinício
tls_cert_file
PEM certificate chain for the TLS listener, relative to the data directory unless absolute.
- Tipo: texto
- Padrão:
tls/server.crt - Aplica-se em: reinício
tls_key_file
PEM private key for the TLS listener, relative to the data directory unless absolute.
- Tipo: texto
- Padrão:
tls/server.key - Aplica-se em: reinício
storage
wal_writer_delay
Maximum normal delay between WAL writer flush attempts for async commits.
- Tipo: duração, 1ms a 1min
- Padrão:
200ms - Aplica-se em: reinício
wal_dir
Directory for WAL segments; empty means <data_dir>/wal. Put it on its own disk.
- Tipo: texto
- Padrão:
'' - Aplica-se em: reinício
shared_buffers
Size of the buffer pool.
- Tipo: tamanho, 128kB a 1024TB
- Padrão:
128MB - Aplica-se em: reinício
checkpoint_batch_pages
Pages the continuous checkpointer writes per normal step. Benchmark this starting point on the storage in use.
- Tipo: inteiro, 1 a 1000000
- Padrão:
64 - Aplica-se em: reinício
checkpoint_timeout
Maximum time between published continuous checkpoints. This is a starting recommendation; benchmark it on the storage in use.
- Tipo: duração, 100ms a 1d
- Padrão:
5min - Aplica-se em: reinício
bgwriter_delay
Delay between continuous checkpointer steps. This is a starting recommendation; benchmark it on the storage in use.
- Tipo: duração, 1ms a 1min
- Padrão:
200ms - Aplica-se em: reinício
max_recovery_wal
Preferred maximum distance between the published redo point and the WAL end before the checkpointer catches up.
- Tipo: tamanho, 1MB a 1024TB
- Padrão:
64MB - Aplica-se em: reinício
checkpoint_min_publish_advance
Minimum redo advance before publishing a checkpoint, unless the checkpointer is urgent.
- Tipo: tamanho, 1B a 1024TB
- Padrão:
1MB - Aplica-se em: reinício
checkpoint_dirty_target
Target dirty-buffer share in per mille; above it the checkpointer accelerates.
- Tipo: inteiro, 1 a 999
- Padrão:
300 - Aplica-se em: reinício
checkpoint_dirty_trigger
Dirty-buffer share in per mille at which writer pressure is reported.
- Tipo: inteiro, 1 a 1000
- Padrão:
600 - Aplica-se em: reinício
autovacuum
Whether the server vacuums, on its own, the tables whose dead rows pass the threshold.
- Tipo: on/off
- Padrão:
on - Aplica-se em: reinício
autovacuum_naptime
Time between two autovacuum passes over the tables.
- Tipo: duração, 10ms a 1h
- Padrão:
1min - Aplica-se em: reinício
autovacuum_vacuum_threshold
Dead rows a table must pass, besides the scale percent of its live rows, before autovacuum vacuums it.
- Tipo: inteiro, 0 a 1000000000
- Padrão:
50 - Aplica-se em: reinício
autovacuum_vacuum_scale_percent
Percent of the live rows that autovacuum adds to the threshold (the scale factor, as a percent).
- Tipo: inteiro, 0 a 100
- Padrão:
20 - Aplica-se em: reinício
vacuum_cost_limit
Cost an autovacuum may accumulate before it pauses for vacuum_cost_delay. A page read costs 1, a page it changes 20 more.
- Tipo: inteiro, 1 a 10000
- Padrão:
200 - Aplica-se em: reinício
vacuum_cost_delay
Pause an autovacuum takes once it has spent vacuum_cost_limit.
- Tipo: duração, 1ms a 100ms
- Padrão:
2ms - Aplica-se em: reinício
stats_flush_interval
How often the table statistics (sys.stat_user_tables) are stored. A crash loses at most one interval of them.
- Tipo: duração, 10ms a 1h
- Padrão:
1s - Aplica-se em: reinício
logging
log_destination
Where log events go. stderr is what containers and systemd expect.
- Tipo: um de: stderr, file
- Padrão:
stderr - Aplica-se em: reinício
log_format
text (see log_line_prefix) or json (one object per line).
- Tipo: um de: text, json
- Padrão:
text - Aplica-se em: recarregar
log_dir
Log Directory
- Tipo: texto
- Padrão:
'' - Aplica-se em: reinício
log_line_prefix
%t - time, %p - pid, %u - user, %d - database, %a - application, %h - remote host, %x - transaction id, %e - SQLSTATE, %% - percent sign
- Tipo: texto
- Padrão:
%t [%p] - Aplica-se em: recarregar
log_min_level
Initial minimum severity; it can be changed at runtime with SQL.
- Tipo: um de: debug, info, notice, warning, error, fatal
- Padrão:
info - Aplica-se em: recarregar
log_rotation_age
Start a new log file after this long (log_destination = file).
- Tipo: duração, 1min a 365d
- Padrão:
1d - Aplica-se em: recarregar
log_rotation_size
Start a new log file after this size (log_destination = file).
- Tipo: tamanho, 1MB a 64GB
- Padrão:
100MB - Aplica-se em: recarregar