Parameter description: Specifies the level of the information that is written to WALs.
Type: POSTMASTER
Value range: enumerated values
Advantages: Certain bulk operations (including creating tables and indexes, executing cluster operations, and copying tables) are safely skipped in logging, which can make those operations much faster.
Disadvantages: WALs only contain basic information required for the recovery from a database server crash or an emergency shutdown. Archived WALs cannot be used to restore data.
Adds logging required for WAL archiving, supporting the database restoration from archives.
Default value: hot_standby
Parameter description: Specifies the synchronization mode of the current transaction.
Type: USERSET
Value range: enumerated values
Default value: on
Parameter description: Specifies the number of XLOG_BLCKSZs used for storing WAL data. The size of each XLOG_BLCKSZ is 8 KB.
Type: POSTMASTER
Value range: -1 to 218. The unit is 8 KB.
Default value: 16 MB
Setting suggestions: The content of WAL buffers is written to disks at each transaction commit, and setting this parameter to a large value does not significantly improve system performance. Setting this parameter to hundreds of megabytes can improve the disk writing performance on the server, to which a large number of transactions are committed. Based on experiences, the default value meets user requirements in most cases.
Parameter description: Specifies the duration of committed data be stored in the WAL buffer.
Type: USERSET
Value range: an integer, ranging from 0 to 100000 (unit: μs). 0 indicates no delay.
Default value: 0
Parameter description: Specifies a limit on the number of ongoing transactions. If the number of ongoing transactions is greater than the limit, a new transaction will wait for the period of time specified by commit_delay before it is submitted. If the number of ongoing transactions is less than the limit, the new transaction is immediately written into a WAL.
Type: USERSET
Value range: an integer ranging from 0 to 1000
Default value: 5
Parameter description: Specifies whether to enable the group insertion mode for WALs. Only the Kunpeng architecture supports this parameter.
Type: SIGHUP
Value range: Boolean
Default value: on
Parameter description: Specifies whether to compress FPI pages.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Specifies the compression level of zlib compression algorithm when the wal_compression parameter is enabled.
Type: USERSET
Value range: an integer ranging from 0 to 9.
Default value: 9