Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index4025
Available Character Set Conversions23.3.4. Available Character Set Conversions
PostgreSQL allows conversion between any two character sets for which a conversion function is listed in the pg_conversion system catalog. Postgre…Available Character Set Conversions
B-Tree11.2.1. B-Tree
B-trees can handle equality and range queries on data that can be sorted into some ordering. In particular, the PostgreSQL query planner will consider using a B-tree index whe…B-Tree
B-Tree FunctionsF.23.3. B-Tree Functions
bt_metap(relname text) returns record
bt_metap returns information about a B-tree index's metapage. For example: test=# SELECT * FROM bt_metap('pg_cast_oid_index'); …B-Tree Functions
B-Tree Indexes65.1. B-Tree IndexesB-Tree Indexes
B-Tree Structure65.1.4.1. B-Tree Structure
PostgreSQL B-Tree indexes are multi-level tree structures, where each level of the tree can be used as a doubly-linked list of pages. A single metapage is stored i…B-Tree Structure
B-Tree Support Functions65.1.3. B-Tree Support Functions
As shown in Table 36.9, btree defines one required and five optional support functions. The six user-defined methods are:
order
For each combination of data …B-Tree Support Functions
Background Worker ProcessesChapter 46. Background Worker Processes
PostgreSQL can be extended to run user-supplied code in separate processes. Such processes are started, stopped and monitored by postgres, which permi…Background Worker Processes
Background Writer19.4.4. Background Writer
There is a separate server process called the background writer, whose function is to issue writes of “dirty” (new or modified) shared buffers. When the number of c…Background Writer
Backing Up the Data Directory25.3.4.1. Backing Up the Data Directory
Some file system backup tools emit warnings or errors if the files they are trying to copy change while the copy proceeds. When taking a base backup o…Backing Up the Data Directory
Backup and RestoreChapter 25. Backup and Restore
As with everything that contains valuable data, PostgreSQL databases should be backed up regularly. While the procedure is essentially simple, it is important …Backup and Restore
Backup Control Functions9.28.3. Backup Control Functions
The functions shown in Table 9.97 assist in making on-line backups. These functions cannot be executed during recovery (except pg_backup_start, pg_backup_sto…Backup Control Functions
Backup Manifest File Object70.2. Backup Manifest File Object
The object which describes a single file contains either a Path key or an Encoded-Path key. Normally, the Path key will be present. The associated string va…Backup Manifest File Object
Backup Manifest FormatChapter 70. Backup Manifest Format
The backup manifest generated by pg_basebackup is primarily intended to permit the backup to be verified using pg_verifybackup. However, it is also possibl…Backup Manifest Format
Backup Manifest Top-level Object70.1. Backup Manifest Top-level Object
The backup manifest JSON document contains the following keys.
PostgreSQL-Backup-Manifest-Version The associated value is an integer. Beginning in Post…Backup Manifest Top-level Object
Backup Manifest WAL Range Object70.3. Backup Manifest WAL Range Object
The object which describes a WAL range always has three keys:
Timeline The timeline for this range of WAL records, as an integer. Start-LSN The LSN at …Backup Manifest WAL Range Object
Base Backup Progress Reporting27.4.6. Base Backup Progress Reporting
Whenever an application like pg_basebackup is taking a base backup, the pg_stat_progress_basebackup view will contain a row for each WAL sender process…Base Backup Progress Reporting
Base Types36.2.1. Base Types
Base types are those, like integer, that are implemented below the level of the SQL language (typically in a low-level language such as C). They generally correspond to wh…Base Types
Base TypesBase Types
The fourth form of CREATE TYPE creates a new base type (scalar type). To create a new base type, you must be a superuser. (This restriction is made because an erroneous type defin…Base Types
Base Types in C-Language Functions36.10.2. Base Types in C-Language Functions
To know how to write C-language functions, you need to know how PostgreSQL internally represents base data types and how they can be passed to and…Base Types in C-Language Functions
basebackup_to_shell — example "shell" pg_basebackup moduleF.4. basebackup_to_shell — example "shell" pg_basebackup module
basebackup_to_shell adds a custom basebackup target called shell. This makes it possible to run pg_basebackup --target=shell o…basebackup_to_shell — example "shell" pg_basebackup module
Basic API Structure for Indexes63.1. Basic API Structure for Indexes
Each index access method is described by a row in the pg_am system catalog. The pg_am entry specifies a name and a handler function for the index access…Basic API Structure for Indexes
Basic Configuration26.2.8.1. Basic Configuration
Once streaming replication has been configured, configuring synchronous replication requires only one additional configuration step: synchronous_standby_names m…Basic Configuration
Basic Regular Expressions9.7.3.7. Basic Regular Expressions
BREs differ from EREs in several respects. In BREs, |, +, and ? are ordinary characters and there is no equivalent for their functionality. The delimiters …Basic Regular Expressions
Basic Setup18.10.1. Basic Setup
The PostgreSQL server will listen for both normal and GSSAPI-encrypted connections on the same TCP port, and will negotiate with any connecting client whether to use GSS…Basic Setup
Basic Setup18.9.1. Basic Setup
With SSL support compiled in, the PostgreSQL server can be started with support for encrypted connections using TLS protocols enabled by setting the parameter ssl to on i…Basic Setup
Basic Statements41.5. Basic Statements
In this section and the following ones, we describe all the statement types that are explicitly understood by PL/pgSQL. Anything not recognized as one of these stateme…Basic Statements
Basic Text Matching12.1.2. Basic Text Matching
Full text searching in PostgreSQL is based on the match operator @@, which returns true if a tsvector (document) matches a tsquery (query). It doesn't matter whic…Basic Text Matching
basic_archive — an example WAL archive moduleF.5. basic_archive — an example WAL archive module
basic_archive is an example of an archive module. This module copies completed WAL segment files to the specified directory. This may not b…basic_archive — an example WAL archive module
BEGINBEGIN BEGIN — start a transaction block
Synopsis BEGIN [ WORK | TRANSACTION ] [ transaction_mode [, ...] ] where transaction_mode is one of: ISOLATION LEVEL { SERIALIZABLE | REPEATABLE READ …BEGIN
Behavior23.1.2. Behavior
The locale settings influence the following SQL features:
Sort order in queries using ORDER BY or the standard comparison operators on textual data The upper, lower, and ini…Behavior
Behavior in Threaded Programs32.21. Behavior in Threaded Programs
As of version 17, libpq is always reentrant and thread-safe. However, one restriction is that no two threads attempt to manipulate the same PGconn object…Behavior in Threaded Programs
Behavior of B-Tree Operator Classes65.1.2. Behavior of B-Tree Operator Classes
As shown in Table 36.3, a btree operator class must provide five comparison operators, <, <=, =, >= and >. One might expect that <> should also be…Behavior of B-Tree Operator Classes
BenchmarkF.19.4. Benchmark
The source directory contrib/intarray/bench contains a benchmark test suite, which can be run against an installed PostgreSQL server. (It also requires DBD::Pg to be instal…Benchmark
Benchmarking OptionsBenchmarking Options
pgbench accepts the following command-line benchmarking arguments:
-b scriptname[@weight]--builtin=scriptname[@weight]
Add the specified built-in script to the list of s…Benchmarking Options
Best Practices for Declarative Partitioning5.12.6. Best Practices for Declarative Partitioning
The choice of how to partition a table should be made carefully, as the performance of query planning and execution can be negatively affe…Best Practices for Declarative Partitioning
BibliographyBibliography Selected references and readings for SQL and PostgreSQL. Some white papers and technical reports from the original POSTGRES development team are available at the University of C…Bibliography
BibliographyF.20.6. Bibliography
The information to implement this module was collected from several sites, including:
https://www.isbn-international.org/ https://www.issn.org/ https://www.ismn-internat…Bibliography
Binary Data Types8.4. Binary Data Types
The bytea data type allows storage of binary strings; see Table 8.6.
Table 8.6. Binary Data Types Name Storage Size Description bytea 1 or 4 bytes plus the actual bina…Binary Data Types
Binary FormatBinary Format
The binary format option causes all data to be stored/read as binary format rather than as text. It is somewhat faster than the text and CSV formats, but a binary-format file i…Binary Format
Binary String Functions and Operators9.5. Binary String Functions and Operators
This section describes functions and operators for examining and manipulating binary strings, that is values of type bytea. Many of these are equiv…Binary String Functions and Operators
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open