7 Contrib Modules
PDF page 70
Describe new features related to the Contrib modules.
3.5.1 adminpack
The pg_file_sync function has been added to the extension adminpack. This function guarantees a reliable write to the specified file or directory.
3.5.2 auto_explain
The log_wal parameter to output WAL information has been added to the extension auto_explain. The default value is ‘off’, and WAL information is not output. If this parameter is set to ‘on’, auto_explain.log_analyze must also be set to ‘on’.
PDF page 71
3.5.3 dict_int
The dict_int extension now has an ABSVAL attribute. If this attribute is specified, the sign specified for the integer value will be ignored.
PDF page 72
3.5.4 ltree
The ltree, lquery, and ltxtquery types now support binary I/O.
3.5.5 pageinspect
The following enhancements have been implemented in pageinspect extension.
Heap_tuple_infomask_flags function
This function converts the values of t_infomask, t_infomask2 into a human-readable form.
PDF page 73
Bt_metap function
An allequalimage column has been added to the output of the bt_metap function to indicate the status of duplicate data in the index.
Bt_page_items function
The dead, htid, and tids columns have been added to the output of the bt_page_items function.
PDF page 74
| Column name | Description |
|---|---|
| dead | A boolean value indicating the value of the LP_DEAD bit. |
| htid | Indicates a single heap TID value for each tuple. |
| tids | An array of TID. |
3.5.6 pg_stat_statements
The features to output execution plan and WAL information have been added to the pg_stat_statements extension.
Track_planning parameter
This parameter specifies whether to track the execution plan. The default value is ‘off’. If this parameter is specified, information about the execution plan will be added to the pg_stat_statements view.
Pg_stat_statements view
The following columns have been added to the pg_stat_statements view:
PDF page 75
| Column name | Data type | Description |
|---|---|---|
| plans | bigint | Number of times the statement was planned. |
| total_plan_time | double precision | Total time spent planning the statement. |
| min_plan_time | double precision | Minimum time spent planning the statement, in milliseconds. |
| max_plan_time | double precision | Maximum time spent planning the statement, in milliseconds. |
| mean_plan_time | double precision | Meantime spent planning the statement, in milliseconds. |
| stddev_plan_time | double precision | Population standard deviation of time spent planning the statement, in milliseconds. |
| wal_records | bigint | Total count of WAL records. |
| wal_fpi | bigint | Total number of WAL full-page writes. |
| wal_bytes | numeric | Total amount of WAL bytes. |
The column names in the pg_stat_statements view have been changed as follows.
| PostgreSQL 12 | PostgreSQL 13 | Description |
|---|---|---|
| total_time | total_exec_time | Total time spent executing the statement. |
| min_time | min_exec_time | Minimum time spent executing the statement. |
| max_time | max_exec_time | Maximum time spent executing the statement. |
| mean_time | mean_exec_time | Mean time spent executing the statement. |
| stddev_time | stddev_exec_time | Population standard deviation of time spent executing the statement. |
PDF page 76
SQL statement normalization
The SELECT statement with the FOR UPDATE clause specified and the SELECT statement without it are now separated. Previously, the presence or absence of the FOR UPDATE clause was ignored.
3.5.7 postgres_fdw
The following options have been added to the postgres_fdw extension:
Password_required option
By default, general users are refused connections without a password. This behavior can now be changed by specifying the password_required attribute when creating/changing a user mapping. Only superusers can change this option.
PDF page 77
Additional authentication options
The sslkey and sslcert options can be specified as options when creating a user mapping. These options can only be specified if the superuser is creating/modifying USER MAPPING.
3.5.8 bool_plperl
The extension bool_plperl was added. Use this extension with PL/Perl extension. Used to correctly transfer the value of a bool value to a Perl program.
PDF page 78