5 Changes of Parameters
PDF page 23
The following parameters have been changed in PostgreSQL 9.6.
3.3.1 Added Parameters
The following parameters have been added.
| Parameter Name | Description (context) | Default Value |
|---|---|---|
| backend_flush_after | When single backend writes more than specified size, attempt to force the OS to flush these writes to disk. (user) | 128kB |
| bgwriter_flush_after | Bgwriter force the flush at the time of writing occurrence greater than or equal to the specified size (sighup) | 512kB |
| checkpoint_flush_after | Checkpointer force the flush at the time of writing occurrence greater than or equal to the specified size (sighup) | 256kB |
| enable_fkey_estimates | Use the foreign key to estimate join cost. (user) | on |
| force_parallel_mode | Force parallel processing (user) | off |
| idle_in_transaction_session_timeout | Idle transaction timeout (user) | 0 |
| max_parallel_degree | The maximum value of the degree of parallelism (user) | 2 |
| old_snapshot_threshold | The minimum time that a snapshot is guaranteed valid. (postmaster) | -1 |
| replacement_sort_tuples | The maximum number of tuples to be sorted using Replacement Selection (user). | 150000 |
| parallel_setup_cost | Start cost of parallel processing (user) | 1000 |
| parallel_tuple_cost | Tuple processing cost of parallel processing (user) 0.1 | Tuple processing cost of parallel processing (user) 0.1 |
| syslog_sequence_numbers | Add a sequence number to the SYSLOG message (sighup) | on |
| syslog_split_messages | Split long SYSLOG messages (sighup) | on |
| wal_writer_flush_after | Wal writer is forced to flush at the time of writing occurrence greater than or equal to the specified size (sighup) | 1MB |
PDF page 24
idle_in_transaction_session_timeout parameter
When the transaction is idle for a specified period of time in milliseconds, specify the time to forcibly disconnect the session. The default value is 0 in the time-out does not occur. Specify the parameters from psql of the session in the following example and is running a COMMIT statement from a while waiting after the BEGIN statement is executed.
syslog_sequence_numbers parameter, syslog_split_messages parameter
In a message to be output to the SYSLOG to add the information. By setting the syslog_sequence_numbers parameter to on, the sequence number for each process in the message that is output to the SYSLOG will be added. The default value is on. The syslog_split_messages parameter splits the message if the message has exceeded the PG_SYSLOG_LIMIT (900) bytes. The example below is the log of the instance startup. Process of process ID 3155 will being output the message. [1-1], [1-2], [2-1], has been added in the syslog_sequence_numbers parameter is part of the [2-2].
PDF page 25
old_snapshot_threshold parameter
This parameter specifies the survival time of the snapshot in seconds. Unnecessary tuple exceeds the threshold value can be released by vacuum. The number of seconds that can be specified for this parameter is from -1 to 86,400. However, you can specify up to 60d is to specify the number of days, such as “1d”. The default value of -1 in the same operation as the previous version, disable this feature. Referring to the deleted snapshot error “ERROR: snapshot too old” will occur.
3.3.2 Changed Parameters
The following parameters are changed in the range of setting or the options.
| log_line_prefix | Set to output the time stamp of the numeric types have been added |
|---|---|
| effective_io_concurrency | It can now be specified in the ALTER TABLESPACE SET statement |
| wal_level | Setting archive and hot_standby has been unified in the “replica” |
| synchronous_commit | The remote_apply can now be specified |
| autovacuum_max_workers | The maximum value has been changed to 262,143 from 8,388,607 |
| max_connections | The maximum value has been changed to 262,143 from 8,388,607 |
| max_replication_slots | The maximum value has been changed to 262,143 from 8,388,607 |
| max_wal_senders | The maximum value has been changed to 262,143 from 8,388,607 |
| max_worker_processes | The maximum value has been changed to 262,143 from 8,388,607 |
| superuser_reservrd_connections | The maximum value has been changed to 262,143 from 8,388,607 |
| wal_writer_delay | Short_desc column of pg_settings catalog has been changed |
Parameter Name Modification
PDF page 26
log_line_prefix parameter
Can now specify the % n which is numerical representation of a time stamp.
wal_level parameter
“Archive” and “hot_standby” value for this parameter have been unified to “replica”. However, when archive or hot_standby is specified , the error doesn’t occur and it is considered to be a replica.
synchronous_commit parameter
Value “remote_apply” can now be specified for this parameter. Set this value, in a synchronous replication environment, transaction of the master instance will wait until the WAL is applied on the slave instance. This makes it possible to read the updated data on the slave instance at the time of the completion of the transaction. If recovery_min_apply_delay parameter is specified in the recovery.conf file on the slave instance, the completion of the COMMIT statement on the master instance will wait for the specified time.
3.3.3 Parameters changed the default value
The default values of the following parameters have been changed.
PDF page 27
| Parameter Name | PostgreSQL 9.5 | PostgreSQL 9.6 |
|---|---|---|
| server_versionserver_version_num | 9.5.2 90502 | 9.6beta1 90600 |