7 Contrib Modules
PDF page 95
Describes new features related to the Contrib modules.
3.5.1 Amcheck
The bt_index_check function now has a checkunique parameter to check the integrity of unique constraints. The following example shows the error when corruption is found in the index data1_pkey for the primary key. [5ae2087]
3.5.2 Pg_buffercache
The following functions have been added to the pg_buffercache module. [13453ee]
| Function name | Description | Note |
|---|---|---|
| pg_buffercache_evict Remove any block from the buffer pool. | pg_buffercache_evict Remove any block from the buffer pool. | SUPERUSER only |
PDF page 96
3.5.3 Pg_stat_statements
The following features have been added to the pg_stat_statements module.
Enhancements of the pg_stat_statements view
The pg_stat_statements view has been modified with I/O-related columns and JIT-related and timestamp-related columns added. [13d0072, 5147ab1, dc9f8a7, 5a3423a]
| Column Name | Data Type | Description |
|---|---|---|
| local_blk_read_time | double precision | Local block read time |
| local_blk_write_time | double precision | Local block write time |
| shared_blk_read_time | double precision | Shared block read time |
| shared_blk_write_time double precision | shared_blk_write_time double precision | Shared block write time |
| jit_deform_count | bigint | JIT deform processing count |
| jit_deform_time | double precision | JIT deform processing time |
| stats_since | timestamp with time zone | Statement statistics collection time |
| minmax_stats_since | timestamp with time zone | Statement min/max statistics collection time |
| Column Name | Description |
|---|---|
| blk_read_time | Split into shared_blk_read_time and local_blk_read_time |
| blk_write_time | Split into shared_blk_write_time and local_blk_write_time |
Constants for Execution Statements
The SAVEPOINT, ROLLBACK TO, RELEASE, COMMIT PREPARED, PREPARE TRANSACTION, ROLLBACK PREPARED, DEALLOCATE, and overloaded CALL statements are saved in the pg_stat_statements table as constants with parameter symbols. Previously, statements with different specified names were saved separately. [31de7e6, 638d42a, bb45156, 11c34b3]
PDF page 97
PDF page 98
Pg_stat_statements_reset function
The parameter minmax_only has been added to the pg_stat_statements_reset function. Setting this parameter to true will reset the maximum/minimum value (min_plan_time column, min_exec_time column, etc.) information. [43cbeda]
PDF page 99
3.5.4 Postgres_fdw
The following features have been added to the postgres_fdw module.
Increase tuple cost
The default cost per tuple to access a remote table has been changed from 0.01 to 0.2. [cac169d]
De-parsing Semi-Join
The EXISTS clause used between tables in the same FOREIGN SERVER can now be executed remotely. [824dbea]
PDF page 100
PDF page 101
3.5.5 Ltree
The hash indexes are now accessible for match searches. [485f0aa]
3.5.6 Injection_points
The extension module injection_points has been added to the src/test/modules/injection_points directory. This module provides the infrastructure to utilize basic injection points. The injection_points module provides the following functions. [49cd2b9, f587338]
| Function Name | Description | Note |
|---|---|---|
| injection_points_attach | Create Injection Point | |
| injection_points_detach | Delete Injection Point | |
| injection_points_run | Execute Injection Point | |
| injection_points_set_local | Limit injection point execution to the current process | Limit injection point execution to the current process |
| injection_points_wakeup | Wakeup Injection Point |
PDF page 102
3.5.7 Test_radixtree
The extension test_radixtree has been added to the directory src/test/modules/test_radixtree. This extension is a test implementation of the paper “The Adaptive Radix Tree: ARTful Indexing for Main- Memory Databases” published by Viktor Leis, Alfons Kemper and Thomas Neumann in 2013 (https://ieeexplore.ieee.org/document/6544812). [ee1b30f]
| Function name | Description | Note |
|---|---|---|
| test_radixtree | Execute the Radix Tree test. |
3.5.8 Test_tidstore
The extension module test_tidstore has been added to the src/test/modules/test_tidstore directory. The test_tidstore module is a test module for efficiently storing large sets of TIDs. [30e1442]
PDF page 103
| Function Name | Description | Note |
|---|---|---|
| test_create | Creating a test | |
| check_set_block_offsetstest_is_fulltest_destroy | Validate TID in store against array Check for memory overflow Discarding the test | |
| do_set_block_offset | Set block offset value |
3.5.9 Xid_wraparound
The extension module xid_wraparound has been added to the src/test/modules/xid_wraparound directory. This module provides functions to quickly burn through lots of transaction IDs. [e255b64]
| Function Name | Description | Note |
|---|---|---|
| consume_xids | To proceed to the specified value for the transaction ID. | |
| consume_xids_until | To Proceed to the specified value of Transaction ID. |
PDF page 104
3.5.10 Miscellaneous
In addition to those described above, the following test extension modules have been added under the src/test/modules directory.
| Module Name | Description |
|---|---|
| test_dsa | Test module for Dynamic Shared Area (DSA). [325f540] |
| test_dsatest_dsm_registory | Test module for Dynamic Shared Area (DSA). [325f540] Test module for Dynamic Shared Memory (DSM) registration. [8b2bcf3] |
| test_dsm_registorytest_json_parser | Test module for Dynamic Shared Memory (DSM) registration. [8b2bcf3] Test module for JSON parsing. [3311ea8] |
| test_json_parsertest_resowner | Test module for JSON parsing. [3311ea8] Test module for resource owner feature. [b8bff07] |
PDF page 105
Reverted New Features This section describes major new features that were once committed but not adopted after the beta version. These features may be implemented in the next version.
Merge feature for multiple partitions [1adf16b]
Feature to split partitions [87c21bb]
Named NOT NULL constraints [b0e96f3]
WITHOUT OVERLAPS clause for primary/foreign keys [46a0cd4]
Automatic backtrace output feature [a740b21]
Self-join elimination feature [d3d55ce]
Add stratnum GiST support function [6db4598]
pg_wal_replay_wait function [06c418e]
Transform OR clause to ANY expression [72bd38c]