7 Contrib Modules
PDF page 65
Describes new features related to the Contrib modules.
3.5.1 Amcheck
A sequence checking is now supported.
3.5.2 Basebackup_to_shell
This module is used when “shell” is specified as the target of the base backup. When using this module, specify basebackup_to_shell in the parameter shared_preload_libraries or local_preload_libraries. The following parameters can be specified:
| Parameter name | Description |
|---|---|
| basebackup_to_shell.command | Command path to be executed |
| basebackup_to_shell.required_role | Roles required for execution |
3.5.3 File_fdw
The MATCH value can now be specified in the HEADER option of the CREATE FOREIGN TABLE statement. This option checks for a match between the header line and column name in the text file.
PDF page 66
3.5.4 Pg_stat_statements
The pg_stat_statements view has additional items that can be monitored.
I/O information for temporary files
Read/write times for temporary files can now be monitored. The following columns have been added to the pg_stat_statements view.
| Column name | Data type | Description |
|---|---|---|
| temp_blk_read_time | double precision | Temporary block read time |
| temp_blk_write_time | double precision | Temporary block write time |
Addition of JIT-related information
JIT-related information can now be monitored; the following columns have been added to the pg_stat_statements view.
PDF page 67
| Column name | Data type | Description |
|---|---|---|
| jit_functions | bigint | Number of JIT-compiled function executions |
| jit_generation_time | double precision | JIT code generation time (milliseconds) |
| jit_inlining_count | bigint | Number of executions of inlined function |
| jit_inlining_time | double precision | Execution time of inlined function (milliseconds) |
| jit_optimization_count | bigint | Optimized statement execution count |
| jit_optimization_time | double precision | Optimized statement execution time (milliseconds) |
| jit_emission_count | bigint | Number of times the code was issued |
| jit_emission_time | double precision | Time (milliseconds) the code was used to issue |
3.5.5 Pg_walinspect
The pg_walinspect module is a module for executing processing similar to the pg_waldump command with SQL statements. The following functions are provided. These functions can only be executed by users with the SUPERUSER attribute or the pg_read_server_files role.
| Function name | Description |
|---|---|
| pg_get_wal_record_info | Return WAL information for the specified LSN |
| pg_get_wal_records_info | Return WAL information between specified LSNs |
| pg_get_wal_records_info_till_end_of_wal | Return WAL information from the specified LSN to the end |
| pg_get_wal_stats | Return WAL statistics between specified LSNs |
| pg_get_wal_stats_till_end_of_wal | Return WAL statistics from the specified LSN to the end |
PDF page 68
3.5.6 Postgres_fdw
The following enhancements have been implemented in postgres_fdw:
Specifying the application name
It is now possible to specify application_name for a remote connection. Change the postgres_fdw.application_name parameter.
PDF page 69
| Escape sequence | Description | Note |
|---|---|---|
| %a | Local application name | |
| %c | Session ID | |
| %C | Cluster name (cluster_name) | |
| %d | Local database name | |
| %p | Backend process ID | |
| %u | Local user name | |
| %% | % character |
Parallel_commit option
Added the parallel_commit option to control how remote transaction commits are executed. Setting this option to ‘on’ allows remote transaction commits in parallel. The default value is off, which causes commits to be executed serially.
CASE expression
CASE expressions are now pushed to remote instances.
PDF page 70
3.5.7 Sepgsql
The permissive/enforcing state has been added to the log, with permissive=0 or permissive=1 output at the end of the line.