Appendix F. Additional Supplied Modules

Table of Contents

F.1. adminpack
F.2. amcheck
F.2.1. Functions
F.2.2. Optional heapallindexed Verification
F.2.3. Using amcheck Effectively
F.2.4. Repairing Corruption
F.3. auth_delay
F.3.1. Configuration Parameters
F.3.2. Author
F.4. auto_explain
F.4.1. Configuration Parameters
F.4.2. Example
F.4.3. Author
F.5. bloom
F.5.1. Parameters
F.5.2. Examples
F.5.3. Operator Class Interface
F.5.4. Limitations
F.5.5. Authors
F.6. btree_gin
F.6.1. Example Usage
F.6.2. Authors
F.7. btree_gist
F.7.1. Example Usage
F.7.2. Authors
F.8. citext
F.8.1. Rationale
F.8.2. How to Use It
F.8.3. String Comparison Behavior
F.8.4. Limitations
F.8.5. Author
F.9. cube
F.9.1. Syntax
F.9.2. Precision
F.9.3. Usage
F.9.4. Defaults
F.9.5. Notes
F.9.6. Credits
F.10. dblink
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.11. dict_int
F.11.1. Configuration
F.11.2. Usage
F.12. dict_xsyn
F.12.1. Configuration
F.12.2. Usage
F.13. earthdistance
F.13.1. Cube-Based Earth Distances
F.13.2. Point-Based Earth Distances
F.14. file_fdw
F.15. fuzzystrmatch
F.15.1. Soundex
F.15.2. Levenshtein
F.15.3. Metaphone
F.15.4. Double Metaphone
F.16. hstore
F.16.1. hstore External Representation
F.16.2. hstore Operators and Functions
F.16.3. Indexes
F.16.4. Examples
F.16.5. Statistics
F.16.6. Compatibility
F.16.7. Transforms
F.16.8. Authors
F.17. intagg
F.17.1. Functions
F.17.2. Sample Uses
F.18. intarray
F.18.1. intarray Functions and Operators
F.18.2. Index Support
F.18.3. Example
F.18.4. Benchmark
F.18.5. Authors
F.19. isn
F.19.1. Data Types
F.19.2. Casts
F.19.3. Functions and Operators
F.19.4. Examples
F.19.5. Bibliography
F.19.6. Author
F.20. lo
F.20.1. Rationale
F.20.2. How to Use It
F.20.3. Limitations
F.20.4. Author
F.21. lt_probackup
F.21.1. Limitations
F.22. lt_standby_forward
F.22.1. Configuration Parameters
F.22.2. Usage
F.22.3. Authentication
F.22.4. Features/Limitations
F.23. ltree
F.23.1. Definitions
F.23.2. Operators and Functions
F.23.3. Indexes
F.23.4. Example
F.23.5. Transforms
F.23.6. Authors
F.24. lt_sm
F.24.1. What is lt_sm?
F.24.2. function usage
F.24.3. key management
F.25. myfce
F.25.1. Features Compatible with Mysql Databases
F.25.2. SQL Functions Reference
F.26. mysql_fdw
F.26.1. Installation
F.26.2. Enhancements
F.26.3. Usage
F.26.4. Examples
F.27. orafce
F.27.1. Features Compatible with Oracle Databases
F.27.2. Notes on Using orafce
F.27.3. Data Types
F.27.4. Queries
F.27.5. SQL Functions Reference
F.27.6. Package Reference
F.27.7. Transaction behavior
F.28. oracle_fdw
F.28.1. Cookbook
F.28.2. Objects created by the extension
F.28.3. Options
F.28.4. Usage
F.28.5. Internals
F.28.6. Problems
F.29. pageinspect
F.29.1. General Functions
F.29.2. Heap Functions
F.29.3. B-Tree Functions
F.29.4. BRIN Functions
F.29.5. GIN Functions
F.29.6. Hash Functions
F.30. passwordcheck
F.31. pgaudit
F.32. pg_buffercache
F.32.1. The pg_buffercache View
F.32.2. Sample Output
F.32.3. Authors
F.33. pg_bulkload
F.33.1. Synopsis
F.33.2. Description
F.33.3. Usage
F.33.4. Options
F.33.5. Control Files
F.33.6. Restrictions
F.33.7. Details
F.34. pg_cron
F.34.1. What is pg_cron?
F.35. pgcrypto
F.35.1. General Hashing Functions
F.35.2. Password Hashing Functions
F.35.3. PGP Encryption Functions
F.35.4. Raw Encryption Functions
F.35.5. Random-Data Functions
F.35.6. Notes
F.35.7. Author
F.36. pg_freespacemap
F.36.1. Functions
F.36.2. Sample Output
F.36.3. Author
F.37. pg_hint_plan
F.37.1. Name
F.37.2. Synopsis
F.37.3. Description
F.37.4. The hint table
F.37.5. Details in hinting
F.37.6. Subqueries
F.37.7. Compatible with canopy
F.37.8. Errors
F.37.9. Functional limitations
F.37.10. Hint list
F.38. pg_prewarm
F.38.1. Functions
F.38.2. Configuration Parameters
F.38.3. Author
F.39. pg_profile
F.39.1. Concepts
F.39.2. Extension architecture
F.39.3. Prerequisites
F.39.4. Creating Extensions
F.39.5. Privileges
F.39.6. Using pg_profile
F.39.7. Sections of PWR report
F.39.8. Sections of PSH report
F.40. pg_qualstats
F.40.1. Configuration
F.40.2. Updating the extension
F.40.3. Usage
F.41. pgrowlocks
F.41.1. Overview
F.41.2. Sample Output
F.41.3. Author
F.42. pg_show_plans
F.42.1. Configuration Parameters
F.42.2. Usage
F.42.3. Functions
F.43. pg_stat_statements
F.43.1. The pg_stat_statements View
F.43.2. Functions
F.43.3. Configuration Parameters
F.43.4. Sample Output
F.43.5. Authors
F.44. pgstattuple
F.44.1. Functions
F.44.2. Authors
F.45. pg_trgm
F.45.1. Trigram (or Trigraph) Concepts
F.45.2. Functions and Operators
F.45.3. GUC Parameters
F.45.4. Index Support
F.45.5. Text Search Integration
F.45.6. References
F.45.7. Authors
F.46. pg_visibility
F.46.1. Functions
F.46.2. Author
F.47. postgres_fdw
F.47.1. FDW Options of postgres_fdw
F.47.2. Connection Management
F.47.3. Transaction Management
F.47.4. Remote Query Optimization
F.47.5. Remote Query Execution Environment
F.47.6. Cross-Version Compatibility
F.47.7. Examples
F.47.8. Author
F.48. seg
F.48.1. Rationale
F.48.2. Syntax
F.48.3. Precision
F.48.4. Usage
F.48.5. Notes
F.48.6. Credits
F.49. sepgsql
F.49.1. Overview
F.49.2. Installation
F.49.3. Regression Tests
F.49.4. GUC Parameters
F.49.5. Features
F.49.6. Sepgsql Functions
F.49.7. Limitations
F.49.8. External Resources
F.49.9. Author
F.50. spi
F.50.1. refint — Functions for Implementing Referential Integrity
F.50.2. autoinc — Functions for Autoincrementing Fields
F.50.3. insert_username — Functions for Tracking Who Changed a Table
F.50.4. moddatetime — Functions for Tracking Last Modification Time
F.51. sslinfo
F.51.1. Functions Provided
F.51.2. Author
F.52. tablefunc
F.52.1. Functions Provided
F.52.2. Author
F.53. tcn
F.54. test_decoding
F.55. tsm_system_rows
F.55.1. Examples
F.56. tsm_system_time
F.56.1. Examples
F.57. unaccent
F.57.1. Configuration
F.57.2. Usage
F.57.3. Functions
F.58. uuid-ossp
F.58.1. uuid-ossp Functions
F.58.2. Building uuid-ossp
F.58.3. Author
F.59. xml2
F.59.1. Deprecation Notice
F.59.2. Description of Functions
F.59.3. xpath_table
F.59.4. XSLT Functions
F.59.5. Author
F.60. zhparser
F.60.1. CONFIGURATION
F.60.2. EXAMPLE
F.60.3. Custom dictionary
F.60.4. Custom dictionary 2.1

This appendix and the next one contain information regarding the modules that can be found in the contrib directory of the LightDB distribution. These include porting tools, analysis utilities, and plug-in features that are not part of the core LightDB system, 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 modules found in contrib. Appendix G covers utility programs.

If you are using a pre-packaged version of LightDB, these modules are typically made available as a separate subpackage, such as postgresql-contrib.

Many modules supply new user-defined functions, operators, or types. To make use of one of these modules, 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 module_name;

This command registers the new SQL objects in the current database only, so you need to run it in each database that you want the module's facilities to be available in. Alternatively, run it in database template1 so that the extension will be copied into subsequently-created databases by default.

For all these modules, CREATE EXTENSION must be run by a database superuser, unless the module is considered trusted, in which case it can be run by any user who has CREATE privilege on the current database. Modules that are trusted are identified as such in the sections that follow. Generally, trusted modules are ones that cannot provide access to outside-the-database functionality.

Many modules allow you to install their objects in a schema of your choice. To do that, add SCHEMA schema_name to the CREATE 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 modules 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 module for details.