PostgreSQL 14.2 Documentation

|PostgreSQL 14.2 Documentation|   |   |   |                     |
|:---------------------------:|---|---|---|---------------------|
|                             |   |   |   | [Next](preface.html)|

---

# PostgreSQL 14.2 Documentation

### The PostgreSQL Global Development Group

Copyright © 1996–2022 The PostgreSQL Global Development Group

[Legal Notice](legalnotice.html)

---

**Table of Contents**

[Preface](preface.html)[1. What Is PostgreSQL?](intro-whatis.html)[2. A Brief History of PostgreSQL](history.html)[3. Conventions](notation.html)[4. Further Information](resources.html)[5. Bug Reporting Guidelines](bug-reporting.html)[I. Tutorial](tutorial.html)[1. Getting Started](tutorial-start.html)[2. The SQL Language](tutorial-sql.html)[3. Advanced Features](tutorial-advanced.html)[II. The SQL Language](sql.html)[4. SQL Syntax](sql-syntax.html)[5. Data Definition](ddl.html)[6. Data Manipulation](dml.html)[7. Queries](queries.html)[8. Data Types](datatype.html)[9. Functions and Operators](functions.html)[10. Type Conversion](typeconv.html)[11. Indexes](indexes.html)[12. Full Text Search](textsearch.html)[13. Concurrency Control](mvcc.html)[14. Performance Tips](performance-tips.html)[15. Parallel Query](parallel-query.html)[III. Server Administration](admin.html)[16. Installation from Binaries](install-binaries.html)[17. Installation from Source Code](installation.html)[18. Installation from Source Code on Windows](install-windows.html)[19. Server Setup and Operation](runtime.html)[20. Server Configuration](runtime-config.html)[21. Client Authentication](client-authentication.html)[22. Database Roles](user-manag.html)[23. Managing Databases](managing-databases.html)[24. Localization](charset.html)[25. Routine Database Maintenance Tasks](maintenance.html)[26. Backup and Restore](backup.html)[27. High Availability, Load Balancing, and Replication](high-availability.html)[28. Monitoring Database Activity](monitoring.html)[29. Monitoring Disk Usage](diskusage.html)[30. Reliability and the Write-Ahead Log](wal.html)[31. Logical Replication](logical-replication.html)[32. Just-in-Time Compilation (JIT)](jit.html)[33. Regression Tests](regress.html)[IV. Client Interfaces](client-interfaces.html)[34. libpq — C Library](libpq.html)[35. Large Objects](largeobjects.html)[36. ECPG — Embedded SQL in C](ecpg.html)[37. The Information Schema](information-schema.html)[V. Server Programming](server-programming.html)[38. Extending SQL](extend.html)[39. Triggers](triggers.html)[40. Event Triggers](event-triggers.html)[41. The Rule System](rules.html)[42. Procedural Languages](xplang.html)[43. PL/pgSQL — SQL Procedural Language](plpgsql.html)[44. PL/Tcl — Tcl Procedural Language](pltcl.html)[45. PL/Perl — Perl Procedural Language](plperl.html)[46. PL/Python — Python Procedural Language](plpython.html)[47. Server Programming Interface](spi.html)[48. Background Worker Processes](bgworker.html)[49. Logical Decoding](logicaldecoding.html)[50. Replication Progress Tracking](replication-origins.html)[VI. Reference](reference.html)[I. SQL Commands](sql-commands.html)[II. PostgreSQL Client Applications](reference-client.html)[III. PostgreSQL Server Applications](reference-server.html)[VII. Internals](internals.html)[51. Overview of PostgreSQL Internals](overview.html)[52. System Catalogs](catalogs.html)[53. Frontend/Backend Protocol](protocol.html)[54. PostgreSQL Coding Conventions](source.html)[55. Native Language Support](nls.html)[56. Writing a Procedural Language Handler](plhandler.html)[57. Writing a Foreign Data Wrapper](fdwhandler.html)[58. Writing a Table Sampling Method](tablesample-method.html)[59. Writing a Custom Scan Provider](custom-scan.html)[60. Genetic Query Optimizer](geqo.html)[61. Table Access Method Interface Definition](tableam.html)[62. Index Access Method Interface Definition](indexam.html)[63. Generic WAL Records](generic-wal.html)[64. B-Tree Indexes](btree.html)[65. GiST Indexes](gist.html)[66. SP-GiST Indexes](spgist.html)[67. GIN Indexes](gin.html)[68. BRIN Indexes](brin.html)[69. Hash Indexes](hash-index.html)[70. Database Physical Storage](storage.html)[71. System Catalog Declarations and Initial Contents](bki.html)[72. How the Planner Uses Statistics](planner-stats-details.html)[73. Backup Manifest Format](backup-manifest-format.html)[VIII. Appendixes](appendixes.html)[A. PostgreSQL Error Codes](errcodes-appendix.html)[B. Date/Time Support](datetime-appendix.html)[C. SQL Key Words](sql-keywords-appendix.html)[D. SQL Conformance](features.html)[E. Release Notes](release.html)[F. Additional Supplied Modules](contrib.html)[G. Additional Supplied Programs](contrib-prog.html)[H. External Projects](external-projects.html)[I. The Source Code Repository](sourcerepo.html)[J. Documentation](docguide.html)[K. PostgreSQL Limits](limits.html)[L. Acronyms](acronyms.html)[M. Glossary](glossary.html)[N. Color Support](color.html)[O. Obsolete or Renamed Features](appendix-obsolete.html)[Bibliography](biblio.html)[Index](bookindex.html)

---

|   |   | [Next](preface.html)|
|:--|:-:|--------------------:|
|   |   |       Preface       |

 // \<![CDATA[ \<-- For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i \< sheets.length; ++i) { var elem = sheets[i]; head.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = elem.href.replace(/(&|\\?)\_cacheOverride=\\d+/, ''); elem.href = url + (url.indexOf('?') \>= 0 ? '&' : '?') + '\_cacheOverride=' + (new Date().valueOf()); } head.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = function(msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; console.log('Live reload enabled.'); })(); } // ]]\>