Appendix F. Additional Supplied Modules and Extensions#
Appendix F. Additional Supplied Modules and Extensions
Table of Contents
- F.1. amcheck — tools to verify table and index consistency
- F.2. auth_delay — pause on authentication failure
- F.3. auto_dump — extension with ProcessInterrupts hook
- F.4. auto_explain — log execution plans of slow queries
- F.5. basebackup_to_shell — example "shell" pg_basebackup module
- F.6. basic_archive — an example WAL archive module
- F.7. bloom — bloom filter index access method
- F.8. btree_gin — GIN operator classes with B-tree behavior
- F.9. btree_gist — GiST operator classes with B-tree behavior
- F.10. citext — a case-insensitive character string type
- F.11. spi — Server Programming Interface features/examples
- F.12. credcheck — Tantor SE username/password checks
- F.13. cube — a multi-dimensional cube data type
- F.14. dbcopies_decoding — database copy mechanism and data accelerator
- F.15. dblink — connect to other PostgreSQL databases
- dblink_connect — opens a persistent connection to a remote database
- dblink_connect_u — opens a persistent connection to a remote database, insecurely
- dblink_disconnect — closes a persistent connection to a remote database
- dblink — executes a query in a remote database
- dblink_exec — executes a command in a remote database
- dblink_open — opens a cursor in a remote database
- dblink_fetch — returns rows from an open cursor in a remote database
- dblink_close — closes a cursor in a remote database
- dblink_get_connections — returns the names of all open named dblink connections
- dblink_error_message — gets last error message on the named connection
- dblink_send_query — sends an async query to a remote database
- dblink_is_busy — checks if connection is busy with an async query
- dblink_get_notify — retrieve async notifications on a connection
- dblink_get_result — gets an async query result
- dblink_cancel_query — cancels any active query on the named connection
- dblink_get_pkey — returns the positions and field names of a relation's primary key fields
- dblink_build_sql_insert — builds an INSERT statement using a local tuple, replacing the primary key field values with alternative supplied values
- dblink_build_sql_delete — builds a DELETE statement using supplied values for primary key field values
- dblink_build_sql_update — builds an UPDATE statement using a local tuple, replacing the primary key field values with alternative supplied values
- F.16. dict_int — example full-text search dictionary for integers
- F.17. dict_xsyn — example synonym full-text search dictionary
- F.18. earthdistance — calculate great-circle distances
- F.19. fasttrun — function to truncate temporary tables without growing
pg_classsize - F.20. file_fdw — access data files in the server's file system
- F.21. fulleq — equivalence operator for compatibility with Microsoft SQL Server
- F.22. fuzzystrmatch — determine string similarities and distance
- F.23. hstore — hstore key/value datatype
- F.24. hydra (columnar) — hydra optimized row columnar (ORC)
- F.24.1. Overview
- F.24.2. Columnar Installation
- F.24.3. Basic principles and questions
- F.24.4. Columnar Usage
- F.24.5. Performance Microbenchmarks
- F.24.6. Row vs Column Tables
- F.24.7. Updates and Deletes
- F.24.8. Optimizing Query Performance
- F.24.9. Materialized Views
- F.24.10. Vectorized Execution
- F.24.11. Query Parallelization
- F.24.12. Common recomendations
- F.24.13. Working with Time Series Data
- F.25. HypoPG — support for hypothetical indexes
- F.26. intagg — integer aggregator and enumerator
- F.27. intarray — manipulate arrays of integers
- F.28. isn — data types for international standard numbers (ISBN, EAN, UPC, etc.)
- F.29. lo — manage large objects
- F.30. ltree — hierarchical tree-like data type
- F.31. mchar — additional data types for compatibility with Microsoft SQL Server (MS SQL)
- F.32. oauth_validator — OAuth 2.0 Basic Token Validator for Tantor SE
- F.33. online_analyze — statistic collection right after INSERT/UPDATE/DELETE/SELECT
- F.34. orafce — set of functions that provide compatibility with Oracle databases
- F.34.1. Overview
- F.34.2. List of format strings for trunc, round functions
- F.34.3. Date Functions
- F.34.4. oracle.date data type
- F.34.5. oracle.date functions
- F.34.6. oracle.date Operators
- F.34.7. Table dual
- F.34.8. Package dbms_output
- F.34.9. Package utl_file
- F.34.10. Package dbms_sql
- F.34.11. Package dbms_pipe
- F.34.12. Package dbms_alert
- F.34.13. Package PLVdate
- F.34.14. Package PLVstr and PLVchr
- F.34.15. Package PLVsubst
- F.34.16. Package DBMS_utility
- F.34.17. Package PLVlex
- F.34.18. Package DBMS_ASSERT
- F.34.19. Package PLUnit
- F.34.20. Package DBMS_random
- F.34.21. Others functions
- F.34.22. oracle.sys_guid() function
- F.34.23. VARCHAR2 and NVARCHAR2 Support
- F.34.24. Triggers
- F.34.25. Emulated views
- F.34.26. Orafce - Oracle’s compatibility functions and packages
- F.34.27. Chapter 1 Overview
- F.34.28. Chapter 2 Notes on Using orafce
- F.34.29. Chapter 3 Data Types
- F.34.30. Chapter 4 Queries
- F.34.31. Chapter 5 SQL Function Reference
- F.34.32. Chapter 6 Package Reference
- F.34.33. Chapter 7 Transaction behavior
- F.34.34. Migration: Chapter 1 Pre-Migration Configuration
- F.34.35. Migration: Chapter 2 Migrating Syntax Elements
- F.34.36. Migration: Chapter 3 Migrating Functions
- F.34.37. Migration: Chapter 4 Migrating SQL Statements
- F.34.38. Migration: Chapter 5 Migrating PL/SQL
- F.34.39. Migration: Chapter 6 Notes on Using orafce
- F.34.40. Appendix A Correspondence with Oracle Databases
- F.35. pageinspect — low-level inspection of database pages
- F.36. page_repair — individual page repair using standby’s data
- F.37. passwordcheck — verify password strength
- F.38. pg_archive — automatically archive historical data from partitioned tables
- F.39. pgAudit — detailed session and/or object audit logging
- F.40. pgauditlogtofile — pgAudit addon for redirect audit log lines to an independent file
- F.41. pg_background — run commands in background workers
- F.42. pg_buffercache — inspect Tantor SE buffer cache state
- F.43. pg_cron — cron-based job scheduler working within the database
- F.44. pgcrypto — cryptographic functions
- F.45. pg_freespacemap — examine the free space map
- F.46. pg_hint_plan — configuring plans of SQL queries in SQL comments
- F.47. pg_ivm — Incremental View Maintenance (IVM) feature for Tantor SE
- F.48. pgl_ddl_deploy — transparent logical DDL replication
- F.49. pg_partman — create and manage time-based and number-based table partition sets
- F.49.1. Overview
- F.49.2. Installation
- F.49.3. Upgrade
- F.49.4. Examples
- F.49.5. PostgreSQL Partition Manager Extension
(
pg_partman) - F.49.6. Example Guide On Setting Up Native Partitioning
- F.49.7. Migrating An Existing Partition Set to PG Partition Manager
- F.49.8. Migrating From Trigger-based Partitioning To Native Declarative Partitioning
- F.49.9. Guildelines for Upgrading to pg_partman 5.0.1
- F.50. pg_prewarm — preload relation data into buffer caches
- F.51. PGQ — generic, high-performance lockless queue with simple API based on SQL functions
- F.52. pg_qualstats — statistics on predicates found in
WHEREstatements andJOINclauses - F.53. pg_query_id — manipulate aspects of query id computation
- F.54. pg_repack — remove bloat from tables and indexes
- F.55. pgrowlocks — show a table's row locking information
- F.56. pgsql-http — Tantor SE HTTP Client
- F.57. pg_stat_advisor — Tantor SE advisor to create extended statistics
- F.58. pg_stat_kcache — statistics about real reads and writes
- F.59. pg_stat_statements — track statistics of SQL planning and execution
- F.60. pgstattuple — obtain tuple-level statistics
- F.61. pg_store_plans — means for tracking execution plan statistics of all SQL statements
- F.62. pg_surgery — perform low-level surgery on relation data
- F.63. pg_tde — Transparent Data Encryption for Tantor SE
- F.63.1. Overview
- F.63.2. Quickstart
- F.63.3. About Transparent Data Encryption
- F.63.4. Features
- F.63.5. Encryption algorithms
- F.63.6. Configure pg_tde
- F.63.7. Key management overview
- F.63.8. Global Principal Key configuration
- F.63.9. pg_tde usage examples
- F.63.10. Configure WAL encryption
- F.63.11. Technical Reference
- F.63.12. Architecture
- F.63.13. GUC Variables
- F.63.14. Functions
- F.63.15. Streaming Replication with tde_heap
- F.63.16. Overview of pg_tde CLI tools
- F.63.17. How to
- F.63.18. FAQ
- F.63.19. Uninstall pg_tde
- F.64. pg_throttle — extension which add query throttling feature
- F.65. pg_trace — Real-time filtered query tracing for Tantor SE
- F.66. pg_trgm — support for similarity of text using trigram matching
- F.67. pg_uuidv7 — extension to generate UUID version 7 and some other functions
- F.68. pg_variables — work with variables of different types
- F.69. pg_visibility — visibility map information and utilities
- F.70. pg_wait_profile — sample-based profiling of database activity
- F.71. pg_wait_sampling — sampling based statistics of wait events
- F.72. pg_walinspect — low-level WAL inspection
- F.73. plantuner — planner hints
- F.74. postgres_fdw — access data stored in external Tantor SE servers
- F.74.1. FDW Options of postgres_fdw
- F.74.2. Functions
- F.74.3. Connection Management
- F.74.4. Transaction Management
- F.74.5. Remote Query Optimization
- F.74.6. Remote Query Execution Environment
- F.74.7. Cross-Version Compatibility
- F.74.8. Wait Events
- F.74.9. Configuration Parameters
- F.74.10. Examples
- F.74.11. Author
- F.75. seg — a datatype for line segments or floating point intervals
- F.76. sepgsql — SELinux-, label-based mandatory access control (MAC) security module
- F.77. sslinfo — obtain client SSL information
- F.78. tablefunc — functions that return tables (
crosstaband others) - F.79. tcn — a trigger function to notify listeners of changes to table content
- F.80. test_decoding — SQL-based test/example module for WAL logical decoding
- F.81. transp_anon — mask or replace personally identifiable information or commercially sensitive data
- F.81.1. Overview
- F.81.2. Definitions of the terms used in this project
- F.81.3. Anonymization & Data Masking for Tantor SE
- F.81.4. Configuration
- F.81.5. Declare masking rules
- F.81.6. Masking functions
- F.81.7. Dynamic masking
- F.81.8. Generalization
- F.81.9. Custom Fake Data
- F.81.10. Performances
- F.81.11. Security
- F.81.12. Examples
- F.82. tsm_system_rows —
the
SYSTEM_ROWSsampling method forTABLESAMPLE - F.83. tsm_system_time —
the
SYSTEM_TIMEsampling method forTABLESAMPLE - F.84. unaccent — a text search dictionary which removes diacritics
- F.85. uuid-ossp — a UUID generator
- F.86. vector (pgvector) — search vector similarity
- F.86.1. Overview
- F.86.2. Getting Started
- F.86.3. Storing
- F.86.4. Querying
- F.86.5. Indexing
- F.86.6. HNSW
- F.86.7. IVFFlat
- F.86.8. Filtering
- F.86.9. Iterative Index Scans
- F.86.10. Half-Precision Vectors
- F.86.11. Half-Precision Indexing
- F.86.12. Binary Vectors
- F.86.13. Binary Quantization
- F.86.14. Sparse Vectors
- F.86.15. Hybrid Search
- F.86.16. Indexing Subvectors
- F.86.17. Performance
- F.86.18. Monitoring
- F.86.19. Scaling
- F.86.20. Languages
- F.86.21. Frequently Asked Questions
- F.86.22. Troubleshooting
- F.86.23. Reference
- F.86.24. Upgrading
- F.87. xml2 — XPath querying and XSLT functionality
This appendix and the next one contain information on the
optional components
found in the contrib directory of the
Tantor SE distribution.
These include porting tools, analysis utilities,
and plug-in features that are not part of the core PostgreSQL system.
They are separate mainly
because they address a limited audience or are too experimental
to be part of the main source tree. This does not preclude their
usefulness.
This appendix covers extensions and other server plug-in module
libraries found in
contrib. Appendix G covers utility
programs.
Many components supply new user-defined functions, operators, or types, packaged as extensions. To make use of one of these extensions, after you have installed the code you need to register the new SQL objects in the database system. This is done by executing a CREATE EXTENSION command. In a fresh database, you can simply do
CREATE EXTENSION extension_name;
This command registers the new SQL objects in the current database only,
so you need to run it in every database in which you want
the extension's facilities to be available. Alternatively, run it in
database template1 so that the extension will be copied into
subsequently-created databases by default.
For all extensions, the CREATE EXTENSION command must be
run by a database superuser, unless the extension is
considered “trusted”. Trusted extensions can be run by any
user who has CREATE privilege on the current
database. Extensions that are trusted are identified as such in the
sections that follow. Generally, trusted extensions are ones that cannot
provide access to outside-the-database functionality.
The following extensions are trusted in a default installation:
| btree_gin | fuzzystrmatch | ltree | tcn |
| btree_gist | hstore | pgcrypto | tsm_system_rows |
| citext | intarray | pg_trgm | tsm_system_time |
| cube | isn | seg | unaccent |
| dict_int | lo | tablefunc | uuid-ossp |
Many extensions allow you to install their objects in a schema of your
choice. To do that, add SCHEMA
to the schema_nameCREATE EXTENSION
command. By default, the objects will be placed in your current creation
target schema, which in turn defaults to public.
Note, however, that some of these components are not “extensions” in this sense, but are loaded into the server in some other way, for instance by way of shared_preload_libraries. See the documentation of each component for details.
- F.1. amcheck — tools to verify table and index consistency
- F.2. auth_delay — pause on authentication failure
- F.3. auto_dump — extension with ProcessInterrupts hook
- F.4. auto_explain — log execution plans of slow queries
- F.5. basebackup_to_shell — example “shell” pg_basebackup module
- F.6. basic_archive — an example WAL archive module
- F.7. bloom — bloom filter index access method
- F.8. btree_gin — GIN operator classes with B-tree behavior
- F.9. btree_gist — GiST operator classes with B-tree behavior
- F.10. citext — a case-insensitive character string type
- F.11. spi — Server Programming Interface features/examples
- F.12. credcheck — Tantor SE username/password checks
- F.13. cube — a multi-dimensional cube data type
- F.14. dbcopies_decoding — database copy mechanism and data accelerator
- F.15. dblink — connect to other PostgreSQL databases
- F.16. dict_int — example full-text search dictionary for integers
- F.17. dict_xsyn — example synonym full-text search dictionary
- F.18. earthdistance — calculate great-circle distances
- F.19. fasttrun — function to truncate temporary tables without growing pg_class size
- F.20. file_fdw — access data files in the server’s file system
- F.21. fulleq — equivalence operator for compatibility with Microsoft SQL Server
- F.22. fuzzystrmatch — determine string similarities and distance
- F.23. hstore — hstore key/value datatype
- F.24. hydra (columnar) — hydra optimized row columnar (ORC)
- F.25. HypoPG — support for hypothetical indexes
- F.26. intagg — integer aggregator and enumerator
- F.27. intarray — manipulate arrays of integers
- F.28. isn — data types for international standard numbers (ISBN, EAN, UPC, etc.)
- F.29. lo — manage large objects
- F.30. ltree — hierarchical tree-like data type
- F.31. mchar — additional data types for compatibility with Microsoft SQL Server (MS SQL)
- F.32. oauth_validator — OAuth 2.0 Basic Token Validator for Tantor SE
- F.33. online_analyze — statistic collection right after INSERT/UPDATE/DELETE/SELECT
- F.34. orafce — set of functions that provide compatibility with Oracle databases
- F.35. pageinspect — low-level inspection of database pages
- F.36. page_repair — individual page repair using standby’s data
- F.37. passwordcheck — verify password strength
- F.38. pg_archive — automatically archive historical data from partitioned tables
- F.39. pgAudit — detailed session and/or object audit logging
- F.40. pgauditlogtofile — pgAudit addon for redirect audit log lines to an independent file
- F.41. pg_background — run commands in background workers
- F.42. pg_buffercache — inspect Tantor SE buffer cache state
- F.43. pg_cron — cron-based job scheduler working within the database
- F.44. pgcrypto — cryptographic functions
- F.45. pg_freespacemap — examine the free space map
- F.46. pg_hint_plan — configuring plans of SQL queries in SQL comments
- F.47. pg_ivm — Incremental View Maintenance (IVM) feature for Tantor SE
- F.48. pgl_ddl_deploy — transparent logical DDL replication
- F.49. pg_partman — create and manage time-based and number-based table partition sets
- F.50. pg_prewarm — preload relation data into buffer caches
- F.51. PGQ — generic, high-performance lockless queue with simple API based on SQL functions
- F.52. pg_qualstats — statistics on predicates found in WHERE statements and JOIN clauses
- F.53. pg_query_id — manipulate aspects of query id computation
- F.54. pg_repack — remove bloat from tables and indexes
- F.55. pgrowlocks — show a table’s row locking information
- F.56. pgsql-http — Tantor SE HTTP Client
- F.57. pg_stat_advisor — Tantor SE advisor to create extended statistics
- F.58. pg_stat_kcache — statistics about real reads and writes
- F.59. pg_stat_statements — track statistics of SQL planning and execution
- F.60. pgstattuple — obtain tuple-level statistics
- F.61. pg_store_plans — means for tracking execution plan statistics of all SQL statements
- F.62. pg_surgery — perform low-level surgery on relation data
- F.63. pg_tde — Transparent Data Encryption for Tantor SE
- F.64. pg_throttle — extension which add query throttling feature
- F.65. pg_trace — Real-time filtered query tracing for Tantor SE
- F.66. pg_trgm — support for similarity of text using trigram matching
- F.67. pg_uuidv7 — extension to generate UUID version 7 and some other functions
- F.68. pg_variables — work with variables of different types
- F.69. pg_visibility — visibility map information and utilities
- F.70. pg_wait_profile — sample-based profiling of database activity
- F.71. pg_wait_sampling — sampling based statistics of wait events
- F.72. pg_walinspect — low-level WAL inspection
- F.73. plantuner — planner hints
- F.74. postgres_fdw — access data stored in external Tantor SE servers
- F.75. seg — a datatype for line segments or floating point intervals
- F.76. sepgsql — SELinux-, label-based mandatory access control (MAC) security module
- F.77. sslinfo — obtain client SSL information
- F.78. tablefunc — functions that return tables (crosstab and others)
- F.79. tcn — a trigger function to notify listeners of changes to table content
- F.80. test_decoding — SQL-based test/example module for WAL logical decoding
- F.81. transp_anon — mask or replace personally identifiable information or commercially sensitive data
- F.82. tsm_system_rows — the SYSTEM_ROWS sampling method for TABLESAMPLE
- F.83. tsm_system_time — the SYSTEM_TIME sampling method for TABLESAMPLE
- F.84. unaccent — a text search dictionary which removes diacritics
- F.85. uuid-ossp — a UUID generator
- F.86. vector (pgvector) — search vector similarity
- F.87. xml2 — XPath querying and XSLT functionality