--- title: "Additional Supplied Modules and Extensions" id: contrib pg_version: "20devel" --- # Additional Supplied Modules and Extensions ## Table of Contents - [F.1. amcheck — tools to verify table and index consistency](amcheck.md) - [F.1.1. Functions](amcheck.md#amcheck-functions) - [F.1.2. Optional `heapallindexed` Verification](amcheck.md#amcheck-optional-heapallindexed-verification) - [F.1.3. Using `amcheck` Effectively](amcheck.md#amcheck-using-amcheck-effectively) - [F.1.4. Repairing Corruption](amcheck.md#amcheck-repairing-corruption) - [F.2. auth_delay — pause on authentication failure](auth-delay.md) - [F.2.1. Configuration Parameters](auth-delay.md#auth-delay-configuration-parameters) - [F.2.2. Author](auth-delay.md#auth-delay-author) - [F.3. auto_explain — log execution plans of slow queries](auto-explain.md) - [F.3.1. Configuration Parameters](auto-explain.md#auto-explain-configuration-parameters) - [F.3.2. Example](auto-explain.md#auto-explain-example) - [F.3.3. Author](auto-explain.md#auto-explain-author) - [F.4. basebackup_to_shell — example "shell" pg_basebackup module](basebackup-to-shell.md) - [F.4.1. Configuration Parameters](basebackup-to-shell.md#basebackup-to-shell-configuration-parameters) - [F.4.2. Author](basebackup-to-shell.md#basebackup-to-shell-author) - [F.5. basic_archive — an example WAL archive module](basic-archive.md) - [F.5.1. Configuration Parameters](basic-archive.md#basic-archive-configuration-parameters) - [F.5.2. Notes](basic-archive.md#basic-archive-notes) - [F.5.3. Author](basic-archive.md#basic-archive-author) - [F.6. bloom — bloom filter index access method](bloom.md) - [F.6.1. Parameters](bloom.md#bloom-parameters) - [F.6.2. Examples](bloom.md#bloom-examples) - [F.6.3. Operator Class Interface](bloom.md#bloom-operator-class-interface) - [F.6.4. Limitations](bloom.md#bloom-limitations) - [F.6.5. Authors](bloom.md#bloom-authors) - [F.7. btree_gin — GIN operator classes with B-tree behavior](btree-gin.md) - [F.7.1. Example Usage](btree-gin.md#btree-gin-example-usage) - [F.7.2. Authors](btree-gin.md#btree-gin-authors) - [F.8. btree_gist — GiST operator classes with B-tree behavior](btree-gist.md) - [F.8.1. Example Usage](btree-gist.md#btree-gist-example-usage) - [F.8.2. `btree_gist` Indexes on `inet`/`cidr` Columns](btree-gist.md#btree-gist-inet-indexes) - [F.8.3. Authors](btree-gist.md#btree-gist-authors) - [F.9. citext — a case-insensitive character string type](citext.md) - [F.9.1. Rationale](citext.md#citext-rationale) - [F.9.2. How to Use It](citext.md#citext-how-to-use-it) - [F.9.3. String Comparison Behavior](citext.md#citext-string-comparison-behavior) - [F.9.4. Limitations](citext.md#citext-limitations) - [F.9.5. Author](citext.md#citext-author) - [F.10. cube — a multi-dimensional cube data type](cube.md) - [F.10.1. Syntax](cube.md#cube-syntax) - [F.10.2. Precision](cube.md#cube-precision) - [F.10.3. Usage](cube.md#cube-usage) - [F.10.4. Defaults](cube.md#cube-defaults) - [F.10.5. Notes](cube.md#cube-notes) - [F.10.6. Credits](cube.md#cube-credits) - [F.11. dblink — connect to other PostgreSQL databases](dblink.md) - [dblink_connect](contrib-dblink-connect.md) - [dblink_connect_u](contrib-dblink-connect-u.md) - [dblink_disconnect](contrib-dblink-disconnect.md) - [dblink](contrib-dblink-function.md) - [dblink_exec](contrib-dblink-exec.md) - [dblink_open](contrib-dblink-open.md) - [dblink_fetch](contrib-dblink-fetch.md) - [dblink_close](contrib-dblink-close.md) - [dblink_get_connections](contrib-dblink-get-connections.md) - [dblink_error_message](contrib-dblink-error-message.md) - [dblink_send_query](contrib-dblink-send-query.md) - [dblink_is_busy](contrib-dblink-is-busy.md) - [dblink_get_notify](contrib-dblink-get-notify.md) - [dblink_get_result](contrib-dblink-get-result.md) - [dblink_cancel_query](contrib-dblink-cancel-query.md) - [dblink_get_pkey](contrib-dblink-get-pkey.md) - [dblink_build_sql_insert](contrib-dblink-build-sql-insert.md) - [dblink_build_sql_delete](contrib-dblink-build-sql-delete.md) - [dblink_build_sql_update](contrib-dblink-build-sql-update.md) - [F.12. dict_int — example full-text search dictionary for integers](dict-int.md) - [F.12.1. Configuration](dict-int.md#dict-int-config) - [F.12.2. Usage](dict-int.md#dict-int-usage) - [F.13. dict_xsyn — example synonym full-text search dictionary](dict-xsyn.md) - [F.13.1. Configuration](dict-xsyn.md#dict-xsyn-config) - [F.13.2. Usage](dict-xsyn.md#dict-xsyn-usage) - [F.14. earthdistance — calculate great-circle distances](earthdistance.md) - [F.14.1. Cube-Based Earth Distances](earthdistance.md#earthdistance-cube-based) - [F.14.2. Point-Based Earth Distances](earthdistance.md#earthdistance-point-based) - [F.15. file_fdw — access data files in the server's file system](file-fdw.md) - [F.16. fuzzystrmatch — determine string similarities and distance](fuzzystrmatch.md) - [F.16.1. Soundex](fuzzystrmatch.md#fuzzystrmatch-soundex) - [F.16.2. Daitch-Mokotoff Soundex](fuzzystrmatch.md#fuzzystrmatch-daitch-mokotoff) - [F.16.3. Levenshtein](fuzzystrmatch.md#fuzzystrmatch-levenshtein) - [F.16.4. Metaphone](fuzzystrmatch.md#fuzzystrmatch-metaphone) - [F.16.5. Double Metaphone](fuzzystrmatch.md#fuzzystrmatch-double-metaphone) - [F.17. hstore — hstore key/value datatype](hstore.md) - [F.17.1. `hstore` External Representation](hstore.md#hstore-external-rep) - [F.17.2. `hstore` Operators and Functions](hstore.md#hstore-ops-funcs) - [F.17.3. Indexes](hstore.md#hstore-indexes) - [F.17.4. Examples](hstore.md#hstore-examples) - [F.17.5. Statistics](hstore.md#hstore-statistics) - [F.17.6. Compatibility](hstore.md#hstore-compatibility) - [F.17.7. Transforms](hstore.md#hstore-transforms) - [F.17.8. Authors](hstore.md#hstore-authors) - [F.18. intagg — integer aggregator and enumerator](intagg.md) - [F.18.1. Functions](intagg.md#intagg-functions) - [F.18.2. Sample Uses](intagg.md#intagg-samples) - [F.19. intarray — manipulate arrays of integers](intarray.md) - [F.19.1. `intarray` Functions and Operators](intarray.md#intarray-funcs-ops) - [F.19.2. Index Support](intarray.md#intarray-index) - [F.19.3. Example](intarray.md#intarray-example) - [F.19.4. Benchmark](intarray.md#intarray-benchmark) - [F.19.5. Authors](intarray.md#intarray-Authors) - [F.20. isn — data types for international standard numbers (ISBN, EAN, UPC, etc.)](isn.md) - [F.20.1. Data Types](isn.md#isn-data-types) - [F.20.2. Casts](isn.md#isn-casts) - [F.20.3. Functions and Operators](isn.md#isn-funcs-ops) - [F.20.4. Configuration Parameters](isn.md#isn-configuration-parameters) - [F.20.5. Examples](isn.md#isn-examples) - [F.20.6. Bibliography](isn.md#isn-bibliography) - [F.20.7. Author](isn.md#isn-author) - [F.21. lo — manage large objects](lo.md) - [F.21.1. Rationale](lo.md#lo-rationale) - [F.21.2. How to Use It](lo.md#lo-how-to-use) - [F.21.3. Limitations](lo.md#lo-limitations) - [F.21.4. Author](lo.md#lo-author) - [F.22. ltree — hierarchical tree-like data type](ltree.md) - [F.22.1. Definitions](ltree.md#ltree-definitions) - [F.22.2. Operators and Functions](ltree.md#ltree-ops-funcs) - [F.22.3. Indexes](ltree.md#ltree-indexes) - [F.22.4. Example](ltree.md#ltree-example) - [F.22.5. Transforms](ltree.md#ltree-transforms) - [F.22.6. Authors](ltree.md#ltree-authors) - [F.23. pageinspect — low-level inspection of database pages](pageinspect.md) - [F.23.1. General Functions](pageinspect.md#pageinspect-general-funcs) - [F.23.2. Heap Functions](pageinspect.md#pageinspect-heap-funcs) - [F.23.3. B-Tree Functions](pageinspect.md#pageinspect-b-tree-funcs) - [F.23.4. BRIN Functions](pageinspect.md#pageinspect-brin-funcs) - [F.23.5. GIN Functions](pageinspect.md#pageinspect-gin-funcs) - [F.23.6. GiST Functions](pageinspect.md#pageinspect-gist-funcs) - [F.23.7. Hash Functions](pageinspect.md#pageinspect-hash-funcs) - [F.24. passwordcheck — verify password strength](passwordcheck.md) - [F.24.1. Configuration Parameters](passwordcheck.md#passwordcheck-configuration-parameters) - [F.25. pg_buffercache — inspect PostgreSQL buffer cache state](pgbuffercache.md) - [F.25.1. The pg_buffercache View](pgbuffercache.md#pgbuffercache-pg-buffercache) - [F.25.2. The pg_buffercache_os_pages View](pgbuffercache.md#pgbuffercache-pg-buffercache-os-pages) - [F.25.3. The pg_buffercache_numa View](pgbuffercache.md#pgbuffercache-pg-buffercache-numa) - [F.25.4. The `pg_buffercache_summary()` Function](pgbuffercache.md#pgbuffercache-summary) - [F.25.5. The `pg_buffercache_usage_counts()` Function](pgbuffercache.md#pgbuffercache-usage-counts) - [F.25.6. The `pg_buffercache_evict()` Function](pgbuffercache.md#pgbuffercache-pg-buffercache-evict) - [F.25.7. The `pg_buffercache_evict_relation()` Function](pgbuffercache.md#pgbuffercache-pg-buffercache-evict-relation) - [F.25.8. The `pg_buffercache_evict_all()` Function](pgbuffercache.md#pgbuffercache-pg-buffercache-evict-all) - [F.25.9. The `pg_buffercache_mark_dirty()` Function](pgbuffercache.md#pgbuffercache-pg-buffercache-mark-dirty) - [F.25.10. The `pg_buffercache_mark_dirty_relation()` Function](pgbuffercache.md#pgbuffercache-pg-buffercache-mark-dirty-relation) - [F.25.11. The `pg_buffercache_mark_dirty_all()` Function](pgbuffercache.md#pgbuffercache-pg-buffercache-mark-dirty-all) - [F.25.12. Sample Output](pgbuffercache.md#pgbuffercache-sample-output) - [F.25.13. Authors](pgbuffercache.md#pgbuffercache-authors) - [F.26. pgcrypto — cryptographic functions](pgcrypto.md) - [F.26.1. General Hashing Functions](pgcrypto.md#pgcrypto-general-hashing-funcs) - [F.26.2. Password Hashing Functions](pgcrypto.md#pgcrypto-password-hashing-funcs) - [F.26.3. PGP Encryption Functions](pgcrypto.md#pgcrypto-pgp-enc-funcs) - [F.26.4. Raw Encryption Functions](pgcrypto.md#pgcrypto-raw-enc-funcs) - [F.26.5. Random-Data Functions](pgcrypto.md#pgcrypto-random-data-funcs) - [F.26.6. OpenSSL Support Functions](pgcrypto.md#pgcrypto-openssl-support-funcs) - [F.26.7. Configuration Parameters](pgcrypto.md#pgcrypto-configuration-parameters) - [F.26.8. Notes](pgcrypto.md#pgcrypto-notes) - [F.26.9. Author](pgcrypto.md#pgcrypto-author) - [F.27. pg_freespacemap — examine the free space map](pgfreespacemap.md) - [F.27.1. Functions](pgfreespacemap.md#pgfreespacemap-funcs) - [F.27.2. Sample Output](pgfreespacemap.md#pgfreespacemap-sample-output) - [F.27.3. Author](pgfreespacemap.md#pgfreespacemap-author) - [F.28. pg_logicalinspect — logical decoding components inspection](pglogicalinspect.md) - [F.28.1. Functions](pglogicalinspect.md#pglogicalinspect-funcs) - [F.28.2. Author](pglogicalinspect.md#pglogicalinspect-author) - [F.29. pg_overexplain — allow EXPLAIN to dump even more details](pgoverexplain.md) - [F.29.1. EXPLAIN (DEBUG)](pgoverexplain.md#pgoverexplain-debug) - [F.29.2. EXPLAIN (RANGE_TABLE)](pgoverexplain.md#pgoverexplain-range-table) - [F.29.3. Author](pgoverexplain.md#pgoverexplain-author) - [F.30. pg_plan_advice — help the planner get the right plan](pgplanadvice.md) - [F.30.1. Getting Started](pgplanadvice.md#pgplanadvice-getting-started) - [F.30.2. How It Works](pgplanadvice.md#pgplanadvice-how-it-works) - [F.30.3. Advice Targets](pgplanadvice.md#pgplanadvice-targets) - [F.30.4. Advice Tags](pgplanadvice.md#pgplanadvice-tags) - [F.30.5. Advice Feedback](pgplanadvice.md#pgplanadvice-feedback) - [F.30.6. Configuration Parameters](pgplanadvice.md#pgplanadvice-config-params) - [F.30.7. Limitations](pgplanadvice.md#pgplanadvice-limitations) - [F.30.8. Author](pgplanadvice.md#pgplanadvice-author) - [F.31. pg_prewarm — preload relation data into buffer caches](pgprewarm.md) - [F.31.1. Functions](pgprewarm.md#pgprewarm-funcs) - [F.31.2. Configuration Parameters](pgprewarm.md#pgprewarm-config-params) - [F.31.3. Author](pgprewarm.md#pgprewarm-author) - [F.32. pgrowlocks — show a table's row locking information](pgrowlocks.md) - [F.32.1. Overview](pgrowlocks.md#pgrowlocks-overview) - [F.32.2. Sample Output](pgrowlocks.md#pgrowlocks-sample-output) - [F.32.3. Author](pgrowlocks.md#pgrowlocks-author) - [F.33. pg_stash_advice — store and automatically apply plan advice](pgstashadvice.md) - [F.33.1. Functions](pgstashadvice.md#pgstashadvice-functions) - [F.33.2. Configuration Parameters](pgstashadvice.md#pgstashadvice-config-params) - [F.33.3. Author](pgstashadvice.md#pgstashadvice-author) - [F.34. pg_stat_statements — track statistics of SQL planning and execution](pgstatstatements.md) - [F.34.1. The pg_stat_statements View](pgstatstatements.md#pgstatstatements-pg-stat-statements) - [F.34.2. The pg_stat_statements_info View](pgstatstatements.md#pgstatstatements-pg-stat-statements-info) - [F.34.3. Functions](pgstatstatements.md#pgstatstatements-funcs) - [F.34.4. Configuration Parameters](pgstatstatements.md#pgstatstatements-config-params) - [F.34.5. Sample Output](pgstatstatements.md#pgstatstatements-sample-output) - [F.34.6. Authors](pgstatstatements.md#pgstatstatements-authors) - [F.35. pgstattuple — obtain tuple-level statistics](pgstattuple.md) - [F.35.1. Functions](pgstattuple.md#pgstattuple-funcs) - [F.35.2. Authors](pgstattuple.md#pgstattuple-authors) - [F.36. pg_surgery — perform low-level surgery on relation data](pgsurgery.md) - [F.36.1. Functions](pgsurgery.md#pgsurgery-funcs) - [F.36.2. Authors](pgsurgery.md#pgsurgery-authors) - [F.37. pg_trgm — support for similarity of text using trigram matching](pgtrgm.md) - [F.37.1. Trigram (or Trigraph) Concepts](pgtrgm.md#pgtrgm-concepts) - [F.37.2. Functions and Operators](pgtrgm.md#pgtrgm-funcs-ops) - [F.37.3. GUC Parameters](pgtrgm.md#pgtrgm-guc) - [F.37.4. Index Support](pgtrgm.md#pgtrgm-index) - [F.37.5. Text Search Integration](pgtrgm.md#pgtrgm-text-search) - [F.37.6. References](pgtrgm.md#pgtrgm-references) - [F.37.7. Authors](pgtrgm.md#pgtrgm-authors) - [F.38. pg_visibility — visibility map information and utilities](pgvisibility.md) - [F.38.1. Functions](pgvisibility.md#pgvisibility-funcs) - [F.38.2. Author](pgvisibility.md#pgvisibility-author) - [F.39. pg_walinspect — low-level WAL inspection](pgwalinspect.md) - [F.39.1. General Functions](pgwalinspect.md#pgwalinspect-funcs) - [F.39.2. Author](pgwalinspect.md#pgwalinspect-author) - [F.40. postgres_fdw — access data stored in external PostgreSQL servers](postgres-fdw.md) - [F.40.1. FDW Options of postgres_fdw](postgres-fdw.md#postgres-fdw-options) - [F.40.2. Functions](postgres-fdw.md#postgres-fdw-functions) - [F.40.3. Connection Management](postgres-fdw.md#postgres-fdw-connection-management) - [F.40.4. Subscription Management](postgres-fdw.md#postgres-fdw-server-subscription) - [F.40.5. Transaction Management](postgres-fdw.md#postgres-fdw-transaction-management) - [F.40.6. Remote Query Optimization](postgres-fdw.md#postgres-fdw-remote-query-optimization) - [F.40.7. Remote Query Execution Environment](postgres-fdw.md#postgres-fdw-remote-query-execution-environment) - [F.40.8. Cross-Version Compatibility](postgres-fdw.md#postgres-fdw-cross-version-compatibility) - [F.40.9. Wait Events](postgres-fdw.md#postgres-fdw-wait-events) - [F.40.10. Configuration Parameters](postgres-fdw.md#postgres-fdw-configuration-parameters) - [F.40.11. Examples](postgres-fdw.md#postgres-fdw-examples) - [F.40.12. Author](postgres-fdw.md#postgres-fdw-author) - [F.41. seg — a datatype for line segments or floating point intervals](seg.md) - [F.41.1. Rationale](seg.md#seg-rationale) - [F.41.2. Syntax](seg.md#seg-syntax) - [F.41.3. Precision](seg.md#seg-precision) - [F.41.4. Usage](seg.md#seg-usage) - [F.41.5. Notes](seg.md#seg-notes) - [F.41.6. Credits](seg.md#seg-credits) - [F.42. sepgsql — SELinux-, label-based mandatory access control (MAC) security module](sepgsql.md) - [F.42.1. Overview](sepgsql.md#sepgsql-overview) - [F.42.2. Installation](sepgsql.md#sepgsql-installation) - [F.42.3. Regression Tests](sepgsql.md#sepgsql-regression) - [F.42.4. GUC Parameters](sepgsql.md#sepgsql-parameters) - [F.42.5. Features](sepgsql.md#sepgsql-features) - [F.42.6. Sepgsql Functions](sepgsql.md#sepgsql-functions) - [F.42.7. Limitations](sepgsql.md#sepgsql-limitations) - [F.42.8. External Resources](sepgsql.md#sepgsql-resources) - [F.42.9. Author](sepgsql.md#sepgsql-author) - [F.43. spi — Server Programming Interface features/examples](contrib-spi.md) - [F.43.1. autoinc — Functions for Autoincrementing Fields](contrib-spi.md#contrib-spi-autoinc) - [F.43.2. insert_username — Functions for Tracking Who Changed a Table](contrib-spi.md#contrib-spi-insert-username) - [F.43.3. moddatetime — Functions for Tracking Last Modification Time](contrib-spi.md#contrib-spi-moddatetime) - [F.44. sslinfo — obtain client SSL information](sslinfo.md) - [F.44.1. Functions Provided](sslinfo.md#sslinfo-functions) - [F.44.2. Author](sslinfo.md#sslinfo-author) - [F.45. tablefunc — functions that return tables (`crosstab` and others)](tablefunc.md) - [F.45.1. Functions Provided](tablefunc.md#tablefunc-functions-sect) - [F.45.2. Author](tablefunc.md#tablefunc-author) - [F.46. tcn — a trigger function to notify listeners of changes to table content](tcn.md) - [F.47. test_decoding — SQL-based test/example module for WAL logical decoding](test-decoding.md) - [F.48. tsm_system_rows — the `SYSTEM_ROWS` sampling method for `TABLESAMPLE`](tsm-system-rows.md) - [F.48.1. Examples](tsm-system-rows.md#tsm-system-rows-examples) - [F.49. tsm_system_time — the `SYSTEM_TIME` sampling method for `TABLESAMPLE`](tsm-system-time.md) - [F.49.1. Examples](tsm-system-time.md#tsm-system-time-examples) - [F.50. unaccent — a text search dictionary which removes diacritics](unaccent.md) - [F.50.1. Configuration](unaccent.md#unaccent-configuration) - [F.50.2. Usage](unaccent.md#unaccent-usage) - [F.50.3. Functions](unaccent.md#unaccent-functions) - [F.51. uuid-ossp — a UUID generator](uuid-ossp.md) - [F.51.1. `uuid-ossp` Functions](uuid-ossp.md#uuid-ossp-functions-sect) - [F.51.2. Building `uuid-ossp`](uuid-ossp.md#uuid-ossp-building) - [F.51.3. Author](uuid-ossp.md#uuid-ossp-author) - [F.52. xml2 — XPath querying and XSLT functionality](xml2.md) - [F.52.1. Deprecation Notice](xml2.md#xml2-deprecation) - [F.52.2. Description of Functions](xml2.md#xml2-functions) - [F.52.3. `xpath_table`](xml2.md#xml2-xpath-table) - [F.52.4. XSLT Functions](xml2.md#xml2-xslt) - [F.52.5. Author](xml2.md#xml2-author) This appendix and the next one contain information on the optional components found in the `contrib` directory of the PostgreSQL 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](contrib-prog.md) covers utility programs. When building from the source distribution, these optional components are not built automatically, unless you build the "world" target (see [Step 2](install-make.md#build)). You can build and install all of them by running: make make install in the `contrib` directory 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: make check before installation or make installcheck once you have a PostgreSQL server running. If you are using a pre-packaged version of PostgreSQL, these components are typically made available as a separate subpackage, such as `postgresql-contrib`. 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](sql-createextension.md) 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: [Section F.7](btree-gin.md)[Section F.16](fuzzystrmatch.md)[Section F.22](ltree.md)[Section F.46](tcn.md)[Section F.8](btree-gist.md)[Section F.17](hstore.md)[Section F.26](pgcrypto.md)[Section F.48](tsm-system-rows.md)[Section F.9](citext.md)[Section F.19](intarray.md)[Section F.37](pgtrgm.md)[Section F.49](tsm-system-time.md)[Section F.10](cube.md)[Section F.20](isn.md)[Section F.41](seg.md)[Section F.50](unaccent.md)[Section F.12](dict-int.md)[Section F.21](lo.md)[Section F.45](tablefunc.md)[Section F.51](uuid-ossp.md) Many extensions 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 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` (`string`)](runtime-config-client.md#guc-shared-preload-libraries). See the documentation of each component for details.