githubEdit

F. 延伸支援模組

Table of Contents

F.1. adminpackarrow-up-right

F.2. amcheckarrow-up-right

F.2.1. Functionsarrow-up-right

F.2.2. Usingamcheckeffectivelyarrow-up-right

F.2.3. Repairing corruptionarrow-up-right

F.3. auth_delayarrow-up-right

F.3.1. Configuration Parametersarrow-up-right

F.3.2. Authorarrow-up-right

F.4. auto_explainarrow-up-right

F.4.1. Configuration Parametersarrow-up-right

F.4.2. Examplearrow-up-right

F.4.3. Authorarrow-up-right

F.5. bloomarrow-up-right

F.5.1. Parametersarrow-up-right

F.5.2. Examplesarrow-up-right

F.5.3. Operator Class Interfacearrow-up-right

F.5.4. Limitationsarrow-up-right

F.5.5. Authorsarrow-up-right

F.6. btree_ginarrow-up-right

F.6.1. Example Usagearrow-up-right

F.6.2. Authorsarrow-up-right

F.7. btree_gistarrow-up-right

F.7.1. Example Usagearrow-up-right

F.7.2. Authorsarrow-up-right

F.8. chkpassarrow-up-right

F.8.1. Authorarrow-up-right

F.9. citextarrow-up-right

F.9.1. Rationalearrow-up-right

F.9.2. How to Use Itarrow-up-right

F.9.3. String Comparison Behaviorarrow-up-right

F.9.4. Limitationsarrow-up-right

F.9.5. Authorarrow-up-right

F.10. cubearrow-up-right

F.10.1. Syntaxarrow-up-right

F.10.2. Precisionarrow-up-right

F.10.3. Usagearrow-up-right

F.10.4. Defaultsarrow-up-right

F.10.5. Notesarrow-up-right

F.10.6. Creditsarrow-up-right

F.11. dblinkarrow-up-right

dblink_connectarrow-up-right

— opens a persistent connection to a remote database

dblink_connect_uarrow-up-right

— opens a persistent connection to a remote database, insecurely

dblink_disconnectarrow-up-right

— closes a persistent connection to a remote database

dblinkarrow-up-right

— executes a query in a remote database

dblink_execarrow-up-right

— executes a command in a remote database

dblink_openarrow-up-right

— opens a cursor in a remote database

dblink_fetcharrow-up-right

— returns rows from an open cursor in a remote database

dblink_closearrow-up-right

— closes a cursor in a remote database

dblink_get_connectionsarrow-up-right

— returns the names of all open named dblink connections

dblink_error_messagearrow-up-right

— gets last error message on the named connection

dblink_send_queryarrow-up-right

— sends an async query to a remote database

dblink_is_busyarrow-up-right

— checks if connection is busy with an async query

dblink_get_notifyarrow-up-right

— retrieve async notifications on a connection

dblink_get_resultarrow-up-right

— gets an async query result

dblink_cancel_queryarrow-up-right

— cancels any active query on the named connection

dblink_get_pkeyarrow-up-right

— returns the positions and field names of a relation's primary key fields

dblink_build_sql_insertarrow-up-right

— builds an INSERT statement using a local tuple, replacing the primary key field values with alternative supplied values

dblink_build_sql_deletearrow-up-right

— builds a DELETE statement using supplied values for primary key field values

dblink_build_sql_updatearrow-up-right

— builds an UPDATE statement using a local tuple, replacing the primary key field values with alternative supplied values

F.12. dict_intarrow-up-right

F.12.1. Configurationarrow-up-right

F.12.2. Usagearrow-up-right

F.13. dict_xsynarrow-up-right

F.13.1. Configurationarrow-up-right

F.13.2. Usagearrow-up-right

F.14. earthdistancearrow-up-right

F.14.1. Cube-based Earth Distancesarrow-up-right

F.14.2. Point-based Earth Distancesarrow-up-right

F.15. file_fdwarrow-up-right

F.16. fuzzystrmatcharrow-up-right

F.16.1. Soundexarrow-up-right

F.16.2. Levenshteinarrow-up-right

F.16.3. Metaphonearrow-up-right

F.16.4. Double Metaphonearrow-up-right

F.17. hstorearrow-up-right

F.17.1.hstoreExternal Representationarrow-up-right

F.17.2.hstoreOperators and Functionsarrow-up-right

F.17.3. Indexesarrow-up-right

F.17.4. Examplesarrow-up-right

F.17.5. Statisticsarrow-up-right

F.17.6. Compatibilityarrow-up-right

F.17.7. Transformsarrow-up-right

F.17.8. Authorsarrow-up-right

F.18. intaggarrow-up-right

F.18.1. Functionsarrow-up-right

F.18.2. Sample Usesarrow-up-right

F.19. intarrayarrow-up-right

F.19.1.intarrayFunctions and Operatorsarrow-up-right

F.19.2. Index Supportarrow-up-right

F.19.3. Examplearrow-up-right

F.19.4. Benchmarkarrow-up-right

F.19.5. Authorsarrow-up-right

F.20. isnarrow-up-right

F.20.1. Data Typesarrow-up-right

F.20.2. Castsarrow-up-right

F.20.3. Functions and Operatorsarrow-up-right

F.20.4. Examplesarrow-up-right

F.20.5. Bibliographyarrow-up-right

F.20.6. Authorarrow-up-right

F.21. loarrow-up-right

F.21.1. Rationalearrow-up-right

F.21.2. How to Use Itarrow-up-right

F.21.3. Limitationsarrow-up-right

F.21.4. Authorarrow-up-right

F.22. ltreearrow-up-right

F.22.1. Definitionsarrow-up-right

F.22.2. Operators and Functionsarrow-up-right

F.22.3. Indexesarrow-up-right

F.22.4. Examplearrow-up-right

F.22.5. Transformsarrow-up-right

F.22.6. Authorsarrow-up-right

F.23. pageinspectarrow-up-right

F.23.1. General Functionsarrow-up-right

F.23.2. B-tree Functionsarrow-up-right

F.23.3. BRIN Functionsarrow-up-right

F.23.4. GIN Functionsarrow-up-right

F.23.5. Hash Functionsarrow-up-right

F.24. passwordcheckarrow-up-right

F.25. pg_buffercachearrow-up-right

F.25.1. Thepg_buffercacheViewarrow-up-right

F.25.2. Sample Outputarrow-up-right

F.25.3. Authorsarrow-up-right

F.26. pgcryptoarrow-up-right

F.26.1. General Hashing Functionsarrow-up-right

F.26.2. Password Hashing Functionsarrow-up-right

F.26.3. PGP Encryption Functionsarrow-up-right

F.26.4. Raw Encryption Functionsarrow-up-right

F.26.5. Random-Data Functionsarrow-up-right

F.26.6. Notesarrow-up-right

F.26.7. Authorarrow-up-right

F.27. pg_freespacemaparrow-up-right

F.27.1. Functionsarrow-up-right

F.27.2. Sample Outputarrow-up-right

F.27.3. Authorarrow-up-right

F.28. pg_prewarmarrow-up-right

F.28.1. Functionsarrow-up-right

F.28.2. Authorarrow-up-right

F.29. pgrowlocksarrow-up-right

F.29.1. Overviewarrow-up-right

F.29.2. Sample Outputarrow-up-right

F.29.3. Authorarrow-up-right

F.30. pg_stat_statementsarrow-up-right

F.30.1. Thepg_stat_statementsViewarrow-up-right

F.30.2. Functionsarrow-up-right

F.30.3. Configuration Parametersarrow-up-right

F.30.4. Sample Outputarrow-up-right

F.30.5. Authorsarrow-up-right

F.31. pgstattuplearrow-up-right

F.31.1. Functionsarrow-up-right

F.31.2. Authorsarrow-up-right

F.32. pg_trgmarrow-up-right

F.32.1. Trigram (or Trigraph) Conceptsarrow-up-right

F.32.2. Functions and Operatorsarrow-up-right

F.32.3. GUC Parametersarrow-up-right

F.32.4. Index Supportarrow-up-right

F.32.5. Text Search Integrationarrow-up-right

F.32.6. Referencesarrow-up-right

F.32.7. Authorsarrow-up-right

F.33. pg_visibilityarrow-up-right

F.33.1. Functionsarrow-up-right

F.33.2. Authorarrow-up-right

F.34. postgres_fdwarrow-up-right

F.34.1. FDW Options of postgres_fdwarrow-up-right

F.34.2. Connection Managementarrow-up-right

F.34.3. Transaction Managementarrow-up-right

F.34.4. Remote Query Optimizationarrow-up-right

F.34.5. Remote Query Execution Environmentarrow-up-right

F.34.6. Cross-Version Compatibilityarrow-up-right

F.34.7. Examplesarrow-up-right

F.34.8. Authorarrow-up-right

F.35. segarrow-up-right

F.35.1. Rationalearrow-up-right

F.35.2. Syntaxarrow-up-right

F.35.3. Precisionarrow-up-right

F.35.4. Usagearrow-up-right

F.35.5. Notesarrow-up-right

F.35.6. Creditsarrow-up-right

F.36. sepgsqlarrow-up-right

F.36.1. Overviewarrow-up-right

F.36.2. Installationarrow-up-right

F.36.3. Regression Testsarrow-up-right

F.36.4. GUC Parametersarrow-up-right

F.36.5. Featuresarrow-up-right

F.36.6. Sepgsql Functionsarrow-up-right

F.36.7. Limitationsarrow-up-right

F.36.8. External Resourcesarrow-up-right

F.36.9. Authorarrow-up-right

F.37. spiarrow-up-right

F.37.1. refint — Functions for Implementing Referential Integrityarrow-up-right

F.37.2. timetravel — Functions for Implementing Time Travelarrow-up-right

F.37.3. autoinc — Functions for Autoincrementing Fieldsarrow-up-right

F.37.4. insert_username — Functions for Tracking Who Changed a Tablearrow-up-right

F.37.5. moddatetime — Functions for Tracking Last Modification Timearrow-up-right

F.38. sslinfoarrow-up-right

F.38.1. Functions Providedarrow-up-right

F.38.2. Authorarrow-up-right

F.39. tablefuncarrow-up-right

F.39.1. Functions Providedarrow-up-right

F.39.2. Authorarrow-up-right

F.40. tcnarrow-up-right

F.41. test_decodingarrow-up-right

F.42. tsm_system_rowsarrow-up-right

F.42.1. Examplesarrow-up-right

F.43. tsm_system_timearrow-up-right

F.43.1. Examplesarrow-up-right

F.44. unaccentarrow-up-right

F.44.1. Configurationarrow-up-right

F.44.2. Usagearrow-up-right

F.44.3. Functionsarrow-up-right

F.45. uuid-ossparrow-up-right

F.45.1.uuid-osspFunctionsarrow-up-right

F.45.2. Buildinguuid-ossparrow-up-right

F.45.3. Authorarrow-up-right

F.46. xml2arrow-up-right

F.46.1. Deprecation Noticearrow-up-right

F.46.2. Description of Functionsarrow-up-right

F.46.3.xpath_tablearrow-up-right

F.46.4. XSLT Functionsarrow-up-right

F.46.5. Authorarrow-up-right

This appendix and the next one contain information regarding the modules that can be found in thecontribdirectory of thePostgreSQLdistribution. These include porting tools, analysis utilities, and plug-in features that are not part of the core PostgreSQL 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 incontrib.Appendix Garrow-up-rightcovers utility programs.

When building from the source distribution, these components are not built automatically, unless you build the "world" target (seeStep 2arrow-up-right). You can build and install all of them by running:

in thecontribdirectory of a configured source tree; or to build and install just one selected module, do the same in that module's subdirectory. Many of the modules have regression tests, which can be executed by running:

before installation or

once you have aPostgreSQLserver running.

If you are using a pre-packaged version ofPostgreSQL, these modules are typically made available as a separate subpackage, such aspostgresql-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. InPostgreSQL9.1 and later, this is done by executing aCREATE EXTENSIONarrow-up-rightcommand. In a fresh database, you can simply do

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

Many modules allow you to install their objects in a schema of your choice. To do that, addSCHEMA_schema_name_to theCREATE EXTENSIONcommand. By default, the objects will be placed in your current creation target schema, typicallypublic.

If your database was brought forward by dump and reload from a pre-9.1 version ofPostgreSQL, and you had been using the pre-9.1 version of the module in it, you should instead do

This will update the pre-9.1 objects of the module into a proper_extension_object. Future updates to the module will be managed byALTER EXTENSIONarrow-up-right. For more information about extension updates, seeSection 37.15arrow-up-right.

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 ofshared_preload_librariesarrow-up-right. See the documentation of each module for details.

Last updated

Was this helpful?