Tantor SE#
Table of contents:
- Preface
- Part I. Tutorial
- Part II. The SQL Language
- Chapter 4. SQL Syntax
- Chapter 5. Data Definition
- Chapter 6. Data Manipulation
- Chapter 7. Queries
- Chapter 8. Data Types
- 8.1. Numeric Types
- 8.2. Monetary Types
- 8.3. Character Types
- 8.4. Binary Data Types
- 8.5. Date/Time Types
- 8.6. Boolean Type
- 8.7. Enumerated Types
- 8.8. Geometric Types
- 8.9. Network Address Types
- 8.10. Bit String Types
- 8.11. Text Search Types
- 8.12. UUID Type
- 8.13. XML Type
- 8.14. JSON Types
- 8.15. Arrays
- 8.16. Composite Types
- 8.17. Range Types
- 8.18. Domain Types
- 8.19. Object Identifier Types
- 8.20. pg_lsn Type
- 8.21. Pseudo-Types
- Chapter 9. Functions and Operators
- 9.1. Logical Operators
- 9.2. Comparison Functions and Operators
- 9.3. Mathematical Functions and Operators
- 9.4. String Functions and Operators
- 9.5. Binary String Functions and Operators
- 9.6. Bit String Functions and Operators
- 9.7. Pattern Matching
- 9.8. Data Type Formatting Functions
- 9.9. Date/Time Functions and Operators
- 9.10. Enum Support Functions
- 9.11. Geometric Functions and Operators
- 9.12. Network Address Functions and Operators
- 9.13. Text Search Functions and Operators
- 9.14. UUID Functions
- 9.15. XML Functions
- 9.16. JSON Functions and Operators
- 9.17. Sequence Manipulation Functions
- 9.18. Conditional Expressions
- 9.19. Array Functions and Operators
- 9.20. Range/Multirange Functions and Operators
- 9.21. Aggregate Functions
- 9.22. Window Functions
- 9.23. Subquery Expressions
- 9.24. Row and Array Comparisons
- 9.25. Set Returning Functions
- 9.26. System Information Functions and Operators
- 9.27. System Administration Functions
- 9.28. Trigger Functions
- 9.29. Event Trigger Functions
- 9.30. Statistics Information Functions
- Chapter 10. Type Conversion
- Chapter 11. Indexes
- 11.1. Introduction
- 11.2. Index Types
- 11.3. Multicolumn Indexes
- 11.4. Indexes and ORDER BY
- 11.5. Combining Multiple Indexes
- 11.6. Unique Indexes
- 11.7. Indexes on Expressions
- 11.8. Partial Indexes
- 11.9. Index-Only Scans and Covering Indexes
- 11.10. Operator Classes and Operator Families
- 11.11. Indexes and Collations
- 11.12. Examining Index Usage
- Chapter 12. Full Text Search
- Chapter 13. Concurrency Control
- Chapter 14. Performance Tips
- Chapter 15. Parallel Query
- Chapter 16. Autonomous Transactions
- Part III. Server Administration
- Chapter 17. Installation from Binaries
- Chapter 18. Server Setup and Operation
- 18.1. The Tantor SE User Account
- 18.2. Creating a Database Cluster
- 18.3. Starting the Database Server
- 18.4. Managing Kernel Resources
- 18.5. Shutting Down the Server
- 18.6. Upgrading a Tantor SE Cluster
- 18.7. Preventing Server Spoofing
- 18.8. Encryption Options
- 18.9. Secure TCP/IP Connections with SSL
- 18.10. Secure TCP/IP Connections with GSSAPI Encryption
- 18.11. Secure TCP/IP Connections with SSH Tunnels
- 18.12. Registering Event Log on Windows
- Chapter 19. Server Configuration
- 19.1. Setting Parameters
- 19.2. File Locations
- 19.3. Connections and Authentication
- 19.4. Resource Consumption
- 19.5. Write Ahead Log
- 19.6. Replication
- 19.7. Query Planning
- 19.8. Error Reporting and Logging
- 19.9. Run-time Statistics
- 19.10. Automatic Vacuuming
- 19.11. Client Connection Defaults
- 19.12. Lock Management
- 19.13. Version and Platform Compatibility
- 19.14. Error Handling
- 19.15. Preset Options
- 19.16. Customized Options
- 19.17. Developer Options
- 19.18. Short Options
- Chapter 20. Client Authentication
- 20.1. The pg_hba.conf File
- 20.2. User Name Maps
- 20.3. Authentication Methods
- 20.4. Trust Authentication
- 20.5. Password Authentication
- 20.6. GSSAPI Authentication
- 20.7. SSPI Authentication
- 20.8. Ident Authentication
- 20.9. Peer Authentication
- 20.10. LDAP Authentication
- 20.11. RADIUS Authentication
- 20.12. Certificate Authentication
- 20.13. PAM Authentication
- 20.14. BSD Authentication
- 20.15. Authentication Problems
- Chapter 21. Database Roles
- Chapter 22. Managing Databases
- Chapter 23. Localization
- Chapter 24. Routine Database Maintenance Tasks
- Chapter 25. Backup and Restore
- Chapter 26. High Availability, Load Balancing, and Replication
- Chapter 27. Monitoring Database Activity
- Chapter 28. Monitoring Disk Usage
- Chapter 29. Reliability and the Write-Ahead Log
- Chapter 30. Logical Replication
- Chapter 31. Just-in-Time Compilation (JIT)
- Part IV. Client Interfaces
- Chapter 32. libpq — C Library
- 32.1. Database Connection Control Functions
- 32.2. Connection Status Functions
- 32.3. Command Execution Functions
- 32.4. Asynchronous Command Processing
- 32.5. Pipeline Mode
- 32.6. Retrieving Query Results Row-by-Row
- 32.7. Canceling Queries in Progress
- 32.8. The Fast-Path Interface
- 32.9. Asynchronous Notification
- 32.10. Functions Associated with the COPY Command
- 32.11. Control Functions
- 32.12. Miscellaneous Functions
- 32.13. Notice Processing
- 32.14. Event System
- 32.15. Environment Variables
- 32.16. The Password File
- 32.17. The Connection Service File
- 32.18. LDAP Lookup of Connection Parameters
- 32.19. SSL Support
- 32.20. Behavior in Threaded Programs
- 32.21. Building libpq Programs
- 32.22. Example Programs
- Chapter 33. Large Objects
- Chapter 34. ECPG — Embedded SQL in C
- 34.1. The Concept
- 34.2. Managing Database Connections
- 34.3. Running SQL Commands
- 34.4. Using Host Variables
- 34.5. Dynamic SQL
- 34.6. pgtypes Library
- 34.7. Using Descriptor Areas
- 34.8. Error Handling
- 34.9. Preprocessor Directives
- 34.10. Processing Embedded SQL Programs
- 34.11. Library Functions
- 34.12. Large Objects
- 34.13. C++ Applications
- 34.14. Embedded SQL Commands
- 34.15. Informix Compatibility Mode
- 34.16. Oracle Compatibility Mode
- 34.17. Internals
- Chapter 35. The Information Schema
- 35.1. The Schema
- 35.2. Data Types
- 35.3. information_schema_catalog_name
- 35.4. administrable_role_authorizations
- 35.5. applicable_roles
- 35.6. attributes
- 35.7. character_sets
- 35.8. check_constraint_routine_usage
- 35.9. check_constraints
- 35.10. collations
- 35.11. collation_character_set_applicability
- 35.12. column_column_usage
- 35.13. column_domain_usage
- 35.14. column_options
- 35.15. column_privileges
- 35.16. column_udt_usage
- 35.17. columns
- 35.18. constraint_column_usage
- 35.19. constraint_table_usage
- 35.20. data_type_privileges
- 35.21. domain_constraints
- 35.22. domain_udt_usage
- 35.23. domains
- 35.24. element_types
- 35.25. enabled_roles
- 35.26. foreign_data_wrapper_options
- 35.27. foreign_data_wrappers
- 35.28. foreign_server_options
- 35.29. foreign_servers
- 35.30. foreign_table_options
- 35.31. foreign_tables
- 35.32. key_column_usage
- 35.33. parameters
- 35.34. referential_constraints
- 35.35. role_column_grants
- 35.36. role_routine_grants
- 35.37. role_table_grants
- 35.38. role_udt_grants
- 35.39. role_usage_grants
- 35.40. routine_column_usage
- 35.41. routine_privileges
- 35.42. routine_routine_usage
- 35.43. routine_sequence_usage
- 35.44. routine_table_usage
- 35.45. routines
- 35.46. schemata
- 35.47. sequences
- 35.48. sql_features
- 35.49. sql_implementation_info
- 35.50. sql_parts
- 35.51. sql_sizing
- 35.52. table_constraints
- 35.53. table_privileges
- 35.54. tables
- 35.55. transforms
- 35.56. triggered_update_columns
- 35.57. triggers
- 35.58. udt_privileges
- 35.59. usage_privileges
- 35.60. user_defined_types
- 35.61. user_mapping_options
- 35.62. user_mappings
- 35.63. view_column_usage
- 35.64. view_routine_usage
- 35.65. view_table_usage
- 35.66. views
- Chapter 32. libpq — C Library
- Part V. Server Programming
- Chapter 36. Extending SQL
- 36.1. How Extensibility Works
- 36.2. The Tantor SE Type System
- 36.3. User-Defined Functions
- 36.4. User-Defined Procedures
- 36.5. Query Language (SQL) Functions
- 36.6. Function Overloading
- 36.7. Function Volatility Categories
- 36.8. Procedural Language Functions
- 36.9. Internal Functions
- 36.10. Function Optimization Information
- 36.11. User-Defined Aggregates
- 36.12. User-Defined Types
- 36.13. User-Defined Operators
- 36.14. Operator Optimization Information
- 36.15. Interfacing Extensions to Indexes
- 36.16. Packaging Related Objects into an Extension
- 36.17. Extension Building Infrastructure
- Chapter 37. Triggers
- Chapter 38. Event Triggers
- Chapter 39. The Rule System
- Chapter 40. Procedural Languages
- Chapter 41. PL/pgSQL — SQL Procedural Language
- 41.1. Overview
- 41.2. Structure of PL/pgSQL
- 41.3. Declarations
- 41.4. Expressions
- 41.5. Basic Statements
- 41.6. Control Structures
- 41.7. Cursors
- 41.8. Transaction Management
- 41.9. Errors and Messages
- 41.10. Trigger Functions
- 41.11. PL/pgSQL under the Hood
- 41.12. Tips for Developing in PL/pgSQL
- 41.13. Porting from Oracle PL/SQL
- Chapter 42. PL/Tcl — Tcl Procedural Language
- 42.1. Overview
- 42.2. PL/Tcl Functions and Arguments
- 42.3. Data Values in PL/Tcl
- 42.4. Global Data in PL/Tcl
- 42.5. Database Access from PL/Tcl
- 42.6. Trigger Functions in PL/Tcl
- 42.7. Event Trigger Functions in PL/Tcl
- 42.8. Error Handling in PL/Tcl
- 42.9. Explicit Subtransactions in PL/Tcl
- 42.10. Transaction Management
- 42.11. PL/Tcl Configuration
- 42.12. Tcl Procedure Names
- Chapter 43. PL/Perl — Perl Procedural Language
- Chapter 44. PL/Python — Python Procedural Language
- Chapter 45. Server Programming Interface
- Chapter 46. Background Worker Processes
- Chapter 47. Logical Decoding
- 47.1. Logical Decoding Examples
- 47.2. Logical Decoding Concepts
- 47.3. Streaming Replication Protocol Interface
- 47.4. Logical Decoding SQL Interface
- 47.5. System Catalogs Related to Logical Decoding
- 47.6. Logical Decoding Output Plugins
- 47.7. Logical Decoding Output Writers
- 47.8. Synchronous Replication Support for Logical Decoding
- 47.9. Streaming of Large Transactions for Logical Decoding
- 47.10. Two-phase Commit Support for Logical Decoding
- Chapter 48. Replication Progress Tracking
- Chapter 49. Archive Modules
- Chapter 36. Extending SQL
- Part VI. Reference
- Part VII. Internals
- Chapter 50. Overview of PostgreSQL Internals
- Chapter 51. System Catalogs
- 51.1. Overview
- 51.2. pg_aggregate
- 51.3. pg_am
- 51.4. pg_amop
- 51.5. pg_amproc
- 51.6. pg_attrdef
- 51.7. pg_attribute
- 51.8. pg_authid
- 51.9. pg_auth_members
- 51.10. pg_cast
- 51.11. pg_class
- 51.12. pg_collation
- 51.13. pg_constraint
- 51.14. pg_conversion
- 51.15. pg_database
- 51.16. pg_db_role_setting
- 51.17. pg_default_acl
- 51.18. pg_depend
- 51.19. pg_description
- 51.20. pg_enum
- 51.21. pg_event_trigger
- 51.22. pg_extension
- 51.23. pg_foreign_data_wrapper
- 51.24. pg_foreign_server
- 51.25. pg_foreign_table
- 51.26. pg_index
- 51.27. pg_inherits
- 51.28. pg_init_privs
- 51.29. pg_language
- 51.30. pg_largeobject
- 51.31. pg_largeobject_metadata
- 51.32. pg_namespace
- 51.33. pg_opclass
- 51.34. pg_operator
- 51.35. pg_opfamily
- 51.36. pg_parameter_acl
- 51.37. pg_partitioned_table
- 51.38. pg_policy
- 51.39. pg_proc
- 51.40. pg_publication
- 51.41. pg_publication_namespace
- 51.42. pg_publication_rel
- 51.43. pg_range
- 51.44. pg_replication_origin
- 51.45. pg_rewrite
- 51.46. pg_seclabel
- 51.47. pg_sequence
- 51.48. pg_shdepend
- 51.49. pg_shdescription
- 51.50. pg_shseclabel
- 51.51. pg_statistic
- 51.52. pg_statistic_ext
- 51.53. pg_statistic_ext_data
- 51.54. pg_subscription
- 51.55. pg_subscription_rel
- 51.56. pg_tablespace
- 51.57. pg_transform
- 51.58. pg_trigger
- 51.59. pg_ts_config
- 51.60. pg_ts_config_map
- 51.61. pg_ts_dict
- 51.62. pg_ts_parser
- 51.63. pg_ts_template
- 51.64. pg_type
- 51.65. pg_user_mapping
- Chapter 52. System Views
- 52.1. Overview
- 52.2. pg_available_extensions
- 52.3. pg_available_extension_versions
- 52.4. pg_backend_memory_contexts
- 52.5. pg_config
- 52.6. pg_cursors
- 52.7. pg_file_settings
- 52.8. pg_group
- 52.9. pg_hba_file_rules
- 52.10. pg_ident_file_mappings
- 52.11. pg_indexes
- 52.12. pg_locks
- 52.13. pg_matviews
- 52.14. pg_policies
- 52.15. pg_prepared_statements
- 52.16. pg_prepared_xacts
- 52.17. pg_publication_tables
- 52.18. pg_replication_origin_status
- 52.19. pg_replication_slots
- 52.20. pg_roles
- 52.21. pg_rules
- 52.22. pg_seclabels
- 52.23. pg_sequences
- 52.24. pg_settings
- 52.25. pg_shadow
- 52.26. pg_shmem_allocations
- 52.27. pg_stats
- 52.28. pg_stats_ext
- 52.29. pg_stats_ext_exprs
- 52.30. pg_tables
- 52.31. pg_timezone_abbrevs
- 52.32. pg_timezone_names
- 52.33. pg_user
- 52.34. pg_user_mappings
- 52.35. pg_views
- Chapter 53. Frontend/Backend Protocol
- 53.1. Overview
- 53.2. Message Flow
- 53.3. SASL Authentication
- 53.4. Streaming Replication Protocol
- 53.5. Logical Streaming Replication Protocol
- 53.6. Message Data Types
- 53.7. Message Formats
- 53.8. Error and Notice Message Fields
- 53.9. Logical Replication Message Formats
- 53.10. Summary of Changes since Protocol 2.0
- Chapter 54. PostgreSQL Coding Conventions
- Chapter 55. Native Language Support
- Chapter 56. Writing a Procedural Language Handler
- Chapter 57. Writing a Foreign Data Wrapper
- Chapter 58. Writing a Table Sampling Method
- Chapter 59. Writing a Custom Scan Provider
- Chapter 60. Genetic Query Optimizer
- Chapter 61. Table Access Method Interface Definition
- Chapter 62. Index Access Method Interface Definition
- Chapter 63. Generic WAL Records
- Chapter 64. Custom WAL Resource Managers
- Chapter 65. B-Tree Indexes
- Chapter 66. GiST Indexes
- Chapter 67. SP-GiST Indexes
- Chapter 68. GIN Indexes
- Chapter 69. BRIN Indexes
- Chapter 70. Hash Indexes
- Chapter 71. Database Physical Storage
- Chapter 72. Transaction Processing
- Chapter 73. System Catalog Declarations and Initial Contents
- Chapter 74. How the Planner Uses Statistics
- Chapter 75. Backup Manifest Format
- Part VIII. Appendixes
- Appendix A. Tantor SE Error Codes
- Appendix B. Date/Time Support
- Appendix C. SQL Key Words
- Appendix D. SQL Conformance
- Appendix E. Release Notes
- E.1. Release Notes for Tantor SE 16.10.2
- E.2. Release Notes for Tantor SE 16.10.1
- E.3. Release Notes for Tantor SE 16.8.1
- E.4. Release Notes for Tantor SE 16.8.0
- E.5. Release Notes for Tantor SE 16.6.2
- E.6. Release Notes for Tantor SE 16.6.1
- E.7. Release Notes for Tantor SE 16.6.0
- E.8. Release Notes for Tantor SE 16.4.0
- E.9. Release Notes for Tantor SE 16.2.1
- E.10. Release 16.10
- E.11. Release 16.9
- E.12. Release 16.8
- E.13. Release 16.7
- E.14. Release 16.6
- E.15. Release 16.5
- E.16. Release 16.4
- E.17. Release 16.3
- E.18. Release 16.2
- E.19. Release 16.1
- E.20. Release 16
- E.21. Prior Releases
- Appendix F. Additional Supplied Modules and Extensions
- F.1. adminpack — pgAdmin support toolpack
- F.2. amcheck — tools to verify table and index consistency
- F.3. auth_delay — pause on authentication failure
- 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
- F.13. cube — a multi-dimensional cube data type
- F.14. dblink — connect to other PostgreSQL databases
- F.15. dict_int — example full-text search dictionary for integers
- F.16. dict_xsyn — example synonym full-text search dictionary
- F.17. earthdistance — calculate great-circle distances
- F.18. file_fdw — access data files in the server’s file system
- F.19. fuzzystrmatch — determine string similarities and distance
- F.20. hstore — hstore key/value datatype
- F.21. Hydra Optimized Row Columnar (ORC)
- F.22. HypoPG
- F.23. intagg — integer aggregator and enumerator
- F.24. intarray — manipulate arrays of integers
- F.25. isn — data types for international standard numbers (ISBN, EAN, UPC, etc.)
- F.26. lo — manage large objects
- F.27. ltree — hierarchical tree-like data type
- F.28. old_snapshot — inspect old_snapshot_threshold state
- F.29. Orafce Documentation
- F.30. pageinspect — low-level inspection of database pages
- F.31. page_repair
- F.32. passwordcheck — verify password strength
- F.33. pg_archive
- F.34. pgAudit
- F.35. pgAudit Log to File
- F.36. pg_background
- F.37. pg_buffercache — inspect Tantor SE buffer cache state
- F.38. pg_cron
- F.39. pgcrypto — cryptographic functions
- F.40. pg_freespacemap — examine the free space map
- F.41. pg_hint_plan
- F.42. Transparent Logical DDL Replication (pgl_ddl_deploy)
- F.43. pg_partman
- F.44. pg_prewarm — preload relation data into buffer caches
- F.45. PGQ
- F.46. pg_qualstats
- F.47. pg_repack
- F.48. pgrowlocks — show a table’s row locking information
- F.49. pgsql-http PostgreSQL HTTP Client
- F.50. pg_stat_kcache
- F.51. pg_stat_statements — track statistics of SQL planning and execution
- F.52. pgstattuple — obtain tuple-level statistics
- F.53. pg_store_plans
- F.54. pg_surgery — perform low-level surgery on relation data
- F.55. pg_throttle
- F.56. pg_trace
- F.57. pg_trgm — support for similarity of text using trigram matching
- F.58. pg_uuidv7
- F.59. pg_variables
- F.60. pg_visibility — visibility map information and utilities
- F.61. pg_wait_sampling
- F.62. pg_walinspect — low-level WAL inspection
- F.63. postgres_fdw — access data stored in external Tantor SE servers
- F.64. seg — a datatype for line segments or floating point intervals
- F.65. sepgsql — SELinux-, label-based mandatory access control (MAC) security module
- F.66. sslinfo — obtain client SSL information
- F.67. tablefunc — functions that return tables (crosstab and others)
- F.68. tcn — a trigger function to notify listeners of changes to table content
- F.69. test_decoding — SQL-based test/example module for WAL logical decoding
- F.70. transp_anon
- F.71. tsm_system_rows — the SYSTEM_ROWS sampling method for TABLESAMPLE
- F.72. tsm_system_time — the SYSTEM_TIME sampling method for TABLESAMPLE
- F.73. unaccent — a text search dictionary which removes diacritics
- F.74. uuid-ossp — a UUID generator
- F.75. vector (pgvector)
- F.76. wal2json
- F.77. xml2 — XPath querying and XSLT functionality
- Appendix G. Additional Supplied Programs
- Appendix H. Additional External Modules
- Appendix I. External Projects
- Appendix J. Tantor SE Limits
- Appendix K. Acronyms
- Appendix L. Glossary
- Appendix M. Color Support
- Appendix N. Obsolete or Renamed Features
- Bibliography
- Index