githubEdit

M. Glossary

This is a list of terms and their meaning in the context of PostgreSQL and relational database systems in general.

ACID

Atomicityarrow-up-right, Consistencyarrow-up-right, Isolationarrow-up-right, and Durabilityarrow-up-right. This set of properties of database transactions is intended to guarantee validity in concurrent operation and even in event of errors, power failures, etc.

Aggregate function (routine)

A functionarrow-up-right that combines (aggregates) multiple input values, for example by counting, averaging or adding, yielding a single output value.

For more information, see Section 9.21arrow-up-right.

See Also Window function (routine)arrow-up-right.

Analytic function

See Window function (routine)arrow-up-right.

Analyze (operation)

The process of collecting statistics from data in tablesarrow-up-right and other relationsarrow-up-right to help the query plannerarrow-up-right to make decisions about how to execute queriesarrow-up-right.

(Don't confuse this term with the ANALYZE option to the EXPLAINarrow-up-right command.)

For more information, see ANALYZEarrow-up-right.

Atomic

In reference to a datumarrow-up-right: the fact that its value cannot be broken down into smaller components.

In reference to a database transactionarrow-up-right: see atomicityarrow-up-right.

Atomicity

The property of a transactionarrow-up-right that either all its operations complete as a single unit or none do. In addition, if a system failure occurs during the execution of a transaction, no partial results are visible after recovery. This is one of the ACID properties.

Attribute

An element with a certain name and data type found within a tuplearrow-up-right.

Autovacuum (process)

A set of background processes that routinely perform vacuumarrow-up-right and analyzearrow-up-right operations.

For more information, see Section 24.1.6arrow-up-right.

Backend (process)

Process of an instancearrow-up-right which acts on behalf of a client sessionarrow-up-right and handles its requests.

(Don't confuse this term with the similar terms Background Workerarrow-up-right or Background Writerarrow-up-right).

Background worker (process)

Process within an instancearrow-up-right, which runs system- or user-supplied code. Serves as infrastructure for several features in PostgreSQL, such as logical replicationarrow-up-right and parallel queriesarrow-up-right. In addition, Extensionsarrow-up-right can add custom background worker processes.

For more information, see Chapter 47arrow-up-right.

Background writer (process)

A process that writes dirty data pagesarrow-up-right from shared memoryarrow-up-right to the file system. It wakes up periodically, but works only for a short period in order to distribute its expensive I/O activity over time to avoid generating larger I/O peaks which could block other processes.

For more information, see Section 19.4.5arrow-up-right.

Bloat

Space in data pages which does not contain current row versions, such as unused (free) space or outdated row versions.Cast

A conversion of a datumarrow-up-right from its current data type to another data type.

For more information, see CREATE CASTarrow-up-right.

Catalog

The SQL standard uses this term to indicate what is called a databasearrow-up-right in PostgreSQL's terminology.

(Don't confuse this term with system catalogarrow-up-right).

For more information, see Section 22.1arrow-up-right.

Check constraint

A type of constraintarrow-up-right defined on a relationarrow-up-right which restricts the values allowed in one or more attributesarrow-up-right. The check constraint can make reference to any attribute of the same row in the relation, but cannot reference other rows of the same relation or other relations.

For more information, see Section 5.4arrow-up-right.

Checkpoint

A point in the WALarrow-up-right sequence at which it is guaranteed that the heap and index data files have been updated with all information from shared memoryarrow-up-right modified before that checkpoint; a checkpoint record is written and flushed to WAL to mark that point.

A checkpoint is also the act of carrying out all the actions that are necessary to reach a checkpoint as defined above. This process is initiated when predefined conditions are met, such as a specified amount of time has passed, or a certain volume of records has been written; or it can be invoked by the user with the command CHECKPOINT.

For more information, see Section 29.4arrow-up-right.

Checkpointer (process)

A specialized process responsible for executing checkpoints.

Class (archaic)

See Relationarrow-up-right.Client (process)

Any process, possibly remote, that establishes a sessionarrow-up-right by connectingarrow-up-right to an instancearrow-up-right to interact with a databasearrow-up-right.

Column

An attributearrow-up-right found in a tablearrow-up-right or viewarrow-up-right.Commit

The act of finalizing a transactionarrow-up-right within the databasearrow-up-right, which makes it visible to other transactions and assures its durabilityarrow-up-right.

For more information, see COMMITarrow-up-right.

Concurrency

The concept that multiple independent operations happen within the databasearrow-up-right at the same time. In PostgreSQL, concurrency is controlled by the multiversion concurrency controlarrow-up-right mechanism.

Connection

An established line of communication between a client process and a backendarrow-up-right process, usually over a network, supporting a sessionarrow-up-right. This term is sometimes used as a synonym for session.

For more information, see Section 19.3arrow-up-right.

Consistency

The property that the data in the databasearrow-up-right is always in compliance with integrity constraintsarrow-up-right. Transactions may be allowed to violate some of the constraints transiently before it commits, but if such violations are not resolved by the time it commits, such a transaction is automatically rolled backarrow-up-right. This is one of the ACID properties.

Constraint

A restriction on the values of data allowed within a tablearrow-up-right, or in attributes of a domain.

For more information, see Section 5.4arrow-up-right.

Data area

See Data directoryarrow-up-right.Database

A named collection of local SQL objectsarrow-up-right.

For more information, see Section 22.1arrow-up-right.Database cluster

A collection of databases and global SQL objects, and their common static and dynamic metadata. Sometimes referred to as a cluster.

In PostgreSQL, the term cluster is also sometimes used to refer to an instance. (Don't confuse this term with the SQL command CLUSTER.)Database server

See Instancearrow-up-right.Data directory

The base directory on the file system of a serverarrow-up-right that contains all data files and subdirectories associated with a database clusterarrow-up-right (with the exception of tablespacesarrow-up-right, and optionally WALarrow-up-right). The environment variable PGDATA is commonly used to refer to the data directory.

A clusterarrow-up-right's storage space comprises the data directory plus any additional tablespaces.

For more information, see Section 68.1arrow-up-right.Data page

The basic structure used to store relation data. All pages are of the same size. Data pages are typically stored on disk, each in a specific file, and can be read to shared buffersarrow-up-right where they can be modified, becoming dirty. They become clean when written to disk. New pages, which initially exist in memory only, are also dirty until written.Datum

The internal representation of one value of an SQL data type.Delete

An SQL command which removes rowsarrow-up-right from a given tablearrow-up-right or relationarrow-up-right.

For more information, see DELETEarrow-up-right.Durability

The assurance that once a transactionarrow-up-right has been committedarrow-up-right, the changes remain even after a system failure or crash. This is one of the ACID properties.Epoch

See Transaction IDarrow-up-right.Extension

A software add-on package that can be installed on an instancearrow-up-right to get extra features.

For more information, see Section 37.17arrow-up-right.File segment

A physical file which stores data for a given relationarrow-up-right. File segments are limited in size by a configuration value (typically 1 gigabyte), so if a relation exceeds that size, it is split into multiple segments.

For more information, see Section 68.1arrow-up-right.

(Don't confuse this term with the similar term WAL segmentarrow-up-right).Foreign data wrapper

A means of representing data that is not contained in the local databasearrow-up-right so that it appears as if were in local table(s)arrow-up-right. With a foreign data wrapper it is possible to define a foreign serverarrow-up-right and foreign tablesarrow-up-right.

For more information, see CREATE FOREIGN DATA WRAPPERarrow-up-right.Foreign key

A type of constraintarrow-up-right defined on one or more columnsarrow-up-right in a tablearrow-up-right which requires the value(s) in those columnsarrow-up-right to identify zero or one rowarrow-up-right in another (or, infrequently, the same) tablearrow-up-right.Foreign server

A named collection of foreign tablesarrow-up-right which all use the same foreign data wrapperarrow-up-right and have other configuration values in common.

For more information, see CREATE SERVERarrow-up-right.Foreign table (relation)

A relationarrow-up-right which appears to have rowsarrow-up-right and columnsarrow-up-right similar to a regular tablearrow-up-right, but will forward requests for data through its foreign data wrapperarrow-up-right, which will return result setsarrow-up-right structured according to the definition of the foreign tablearrow-up-right.

For more information, see CREATE FOREIGN TABLEarrow-up-right.Fork

Each of the separate segmented file sets in which a relation is stored. The main fork is where the actual data resides. There also exist two secondary forks for metadata: the free space maparrow-up-right and the visibility maparrow-up-right. Unlogged relationsarrow-up-right also have an init fork.Free space map (fork)

A storage structure that keeps metadata about each data page of a table's main fork. The free space map entry for each page stores the amount of free space that's available for future tuples, and is structured to be efficiently searched for available space for a new tuple of a given size.

For more information, see Section 68.3arrow-up-right.Function (routine)

A type of routine that receives zero or more arguments, returns zero or more output values, and is constrained to run within one transaction. Functions are invoked as part of a query, for example via SELECT. Certain functions can return setsarrow-up-right; those are called set-returning functions.

Functions can also be used for triggersarrow-up-right to invoke.

For more information, see CREATE FUNCTIONarrow-up-right.Grant

An SQL command that is used to allow a userarrow-up-right or rolearrow-up-right to access specific objects within the databasearrow-up-right.

For more information, see GRANTarrow-up-right.Heap

Contains the values of rowarrow-up-right attributes (i.e., the data) for a relationarrow-up-right. The heap is realized within one or more file segmentsarrow-up-right in the relation's main forkarrow-up-right.Host

A computer that communicates with other computers over a network. This is sometimes used as a synonym for serverarrow-up-right. It is also used to refer to a computer where client processesarrow-up-right run.Index (relation)

A relationarrow-up-right that contains data derived from a tablearrow-up-right or materialized viewarrow-up-right. Its internal structure supports fast retrieval of and access to the original data.

For more information, see CREATE INDEXarrow-up-right.Insert

An SQL command used to add new data into a tablearrow-up-right.

For more information, see INSERTarrow-up-right.Instance

A group of backend and auxiliary processes that communicate using a common shared memory area. One postmaster processarrow-up-right manages the instance; one instance manages exactly one database clusterarrow-up-right with all its databases. Many instances can run on the same serverarrow-up-right as long as their TCP ports do not conflict.

The instance handles all key features of a DBMS: read and write access to files and shared memory, assurance of the ACID properties, connectionsarrow-up-right to client processesarrow-up-right, privilege verification, crash recovery, replication, etc.Isolation

The property that the effects of a transaction are not visible to concurrent transactionsarrow-up-right before it commits. This is one of the ACID properties.

For more information, see Section 13.2arrow-up-right.Join

An operation and SQL keyword used in queriesarrow-up-right for combining data from multiple relationsarrow-up-right.Key

A means of identifying a rowarrow-up-right within a tablearrow-up-right or other relationarrow-up-right by values contained within one or more attributesarrow-up-right in that relation.Lock

A mechanism that allows a process to limit or prevent simultaneous access to a resource.Log file

Log files contain human-readable text lines about events. Examples include login failures, long-running queries, etc.

For more information, see Section 24.3arrow-up-right.Logged

A tablearrow-up-right is considered loggedarrow-up-right if changes to it are sent to the WALarrow-up-right. By default, all regular tables are logged. A table can be specified as unloggedarrow-up-right either at creation time or via the ALTER TABLE command.Logger (process)

If activated, the process writes information about database events into the current log filearrow-up-right. When reaching certain time- or volume-dependent criteria, a new log file is created. Also called syslogger.

For more information, see Section 19.8arrow-up-right.Log record

Archaic term for a WAL recordarrow-up-right.Master (server)

See Primary (server)arrow-up-right.Materialized

The property that some information has been pre-computed and stored for later use, rather than computing it on-the-fly.

This term is used in materialized viewarrow-up-right, to mean that the data derived from the view's query is stored on disk separately from the sources of that data.

This term is also used to refer to some multi-step queries to mean that the data resulting from executing a given step is stored in memory (with the possibility of spilling to disk), so that it can be read multiple times by another step.Materialized view (relation)

A relationarrow-up-right that is defined by a SELECT statement (just like a viewarrow-up-right), but stores data in the same way that a tablearrow-up-right does. It cannot be modified via INSERT, UPDATE, or DELETE operations.

For more information, see CREATE MATERIALIZED VIEWarrow-up-right.Multi-version concurrency control (MVCC)

A mechanism designed to allow several transactionsarrow-up-right to be reading and writing the same rows without one process causing other processes to stall. In PostgreSQL, MVCC is implemented by creating copies (versions) of tuplesarrow-up-right as they are modified; after transactions that can see the old versions terminate, those old versions need to be removed.Null

A concept of non-existence that is a central tenet of relational database theory. It represents the absence of a definite value.Optimizer

See Query plannerarrow-up-right.Parallel query

The ability to handle parts of executing a queryarrow-up-right to take advantage of parallel processes on servers with multiple CPUs.Partition

One of several disjoint (not overlapping) subsets of a larger set.

In reference to a partitioned tablearrow-up-right: One of the tables that each contain part of the data of the partitioned table, which is said to be the parent. The partition is itself a table, so it can also be queried directly; at the same time, a partition can sometimes be a partitioned table, allowing hierarchies to be created.

In reference to a window functionarrow-up-right in a queryarrow-up-right, a partition is a user-defined criterion that identifies which neighboring rowsarrow-up-right of the query's result setarrow-up-right can be considered by the function.Partitioned table (relation)

A relationarrow-up-right that is in semantic terms the same as a tablearrow-up-right, but whose storage is distributed across several partitionsarrow-up-right.Postmaster (process)

The very first process of an instancearrow-up-right. It starts and manages the other auxiliary processes and creates backend processesarrow-up-right on demand.

For more information, see Section 18.3arrow-up-right.Primary key

A special case of a unique constraintarrow-up-right defined on a tablearrow-up-right or other relationarrow-up-right that also guarantees that all of the attributesarrow-up-right within the primary keyarrow-up-right do not have nullarrow-up-right values. As the name implies, there can be only one primary key per table, though it is possible to have multiple unique constraints that also have no null-capable attributes.Primary (server)

When two or more databasesarrow-up-right are linked via replicationarrow-up-right, the serverarrow-up-right that is considered the authoritative source of information is called the primary, also known as a master.Procedure (routine)

A type of routine. Their distinctive qualities are that they do not return values, and that they are allowed to make transactional statements such as COMMIT and ROLLBACK. They are invoked via the CALL command.

For more information, see CREATE PROCEDUREarrow-up-right.Query

A request sent by a client to a backendarrow-up-right, usually to return results or to modify data on the database.Query planner

The part of PostgreSQL that is devoted to determining (planning) the most efficient way to execute queriesarrow-up-right. Also known as query optimizer, optimizer, or simply planner.Record

See Tuplearrow-up-right.Recycling

See WAL filearrow-up-right.Referential integrity

A means of restricting data in one relationarrow-up-right by a foreign keyarrow-up-right so that it must have matching data in another relationarrow-up-right.Relation

The generic term for all objects in a databasearrow-up-right that have a name and a list of attributesarrow-up-right defined in a specific order. Tablesarrow-up-right, sequencesarrow-up-right, viewsarrow-up-right, foreign tablesarrow-up-right, materialized viewsarrow-up-right, composite types, and indexesarrow-up-right are all relations.

More generically, a relation is a set of tuples; for example, the result of a query is also a relation.

In PostgreSQL, Class is an archaic synonym for relation.Replica (server)

A databasearrow-up-right that is paired with a primaryarrow-up-right database and is maintaining a copy of some or all of the primary database's data. The foremost reasons for doing this are to allow for greater access to that data, and to maintain availability of the data in the event that the primaryarrow-up-right becomes unavailable.Replication

The act of reproducing data on one serverarrow-up-right onto another server called a replicaarrow-up-right. This can take the form of physical replication, where all file changes from one server are copied verbatim, or logical replication where a defined subset of data changes are conveyed using a higher-level representation.Result set

A relationarrow-up-right transmitted from a backend processarrow-up-right to a clientarrow-up-right upon the completion of an SQL command, usually a SELECT but it can be an INSERT, UPDATE, or DELETE command if the RETURNING clause is specified.

The fact that a result set is a relation means that a query can be used in the definition of another query, becoming a subquery.Revoke

A command to prevent access to a named set of databasearrow-up-right objects for a named list of rolesarrow-up-right.

For more information, see REVOKEarrow-up-right.Role

A collection of access privileges to the instancearrow-up-right. Roles are themselves a privilege that can be granted to other roles. This is often done for convenience or to ensure completeness when multiple usersarrow-up-right need the same privileges.

For more information, see CREATE ROLEarrow-up-right.Rollback

A command to undo all of the operations performed since the beginning of a transactionarrow-up-right.

For more information, see ROLLBACKarrow-up-right.Routine

A defined set of instructions stored in the database system that can be invoked for execution. A routine can be written in a variety of programming languages. Routines can be functionsarrow-up-right (including set-returning functions and trigger functionsarrow-up-right), aggregate functionsarrow-up-right, and proceduresarrow-up-right.

Many routines are already defined within PostgreSQL itself, but user-defined ones can also be added.Row

See Tuplearrow-up-right.Savepoint

A special mark in the sequence of steps in a transactionarrow-up-right. Data modifications after this point in time may be reverted to the time of the savepoint.

For more information, see SAVEPOINTarrow-up-right.Schema

A schema is a namespace for SQL objectsarrow-up-right, which all reside in the same databasearrow-up-right. Each SQL object must reside in exactly one schema.

All system-defined SQL objects reside in schema pg_catalog.

More generically, the term schema is used to mean all data descriptions (tablearrow-up-right definitions, constraintsarrow-up-right, comments, etc) for a given databasearrow-up-right or subset thereof.

For more information, see Section 5.9arrow-up-right.Segment

See File segmentarrow-up-right.Select

The SQL command used to request data from a databasearrow-up-right. Normally, SELECT commands are not expected to modify the databasearrow-up-right in any way, but it is possible that functionsarrow-up-right invoked within the query could have side effects that do modify data.

For more information, see SELECTarrow-up-right.Sequence (relation)

A type of relation that is used to generate values. Typically the generated values are sequential non-repeating numbers. They are commonly used to generate surrogate primary keyarrow-up-right values.Server

A computer on which PostgreSQL instancesarrow-up-right run. The term server denotes real hardware, a container, or a virtual machine.

This term is sometimes used to refer to an instance or to a host.Session

A state that allows a client and a backend to interact, communicating over a connectionarrow-up-right.Shared memory

RAM which is used by the processes common to an instancearrow-up-right. It mirrors parts of databasearrow-up-right files, provides a transient area for WAL recordsarrow-up-right, and stores additional common information. Note that shared memory belongs to the complete instance, not to a single database.

The largest part of shared memory is known as shared buffers and is used to mirror part of data files, organized into pages. When a page is modified, it is called a dirty page until it is written back to the file system.

For more information, see Section 19.4.1arrow-up-right.SQL object

Any object that can be created with a CREATE command. Most objects are specific to one database, and are commonly known as local objects.

Most local objects belong to a specific schemaarrow-up-right in their containing database, such as relationsarrow-up-right (all types), routinesarrow-up-right (all types), data types, etc. The names of such objects of the same type in the same schema are enforced to be unique.

There also exist local objects that do not belong to schemas; some examples are extensionsarrow-up-right, data type castsarrow-up-right, and foreign data wrappersarrow-up-right. The names of such objects of the same type are enforced to be unique within the database.

Other object types, such as rolesarrow-up-right, tablespacesarrow-up-right, replication origins, subscriptions for logical replication, and databases themselves are not local SQL objects since they exist entirely outside of any specific database; they are called global objects. The names of such objects are enforced to be unique within the whole database cluster.

For more information, see Section 22.1arrow-up-right.SQL standard

A series of documents that define the SQL language.Standby (server)

See Replica (server)arrow-up-right.Stats collector (process)

This process collects statistical information about the instancearrow-up-right's activities.

For more information, see Section 27.2arrow-up-right.System catalog

A collection of tablesarrow-up-right which describe the structure of all SQL objectsarrow-up-right of the instance. The system catalog resides in the schema pg_catalog. These tables contain data in internal representation and are not typically considered useful for user examination; a number of user-friendlier viewsarrow-up-right, also in schema pg_catalog, offer more convenient access to some of that information, while additional tables and views exist in schema information_schema (see Chapter 36arrow-up-right) that expose some of the same and additional information as mandated by the SQL standardarrow-up-right.

For more information, see Section 5.9arrow-up-right.Table

A collection of tuplesarrow-up-right having a common data structure (the same number of attributesarrow-up-right, in the same order, having the same name and type per position). A table is the most common form of relationarrow-up-right in PostgreSQL.

For more information, see CREATE TABLEarrow-up-right.Tablespace

A named location on the server file system. All SQL objectsarrow-up-right which require storage beyond their definition in the system catalogarrow-up-right must belong to a single tablespace. Initially, a database cluster contains a single usable tablespace which is used as the default for all SQL objects, called pg_default.

For more information, see Section 22.6arrow-up-right.Temporary table

Tablesarrow-up-right that exist either for the lifetime of a sessionarrow-up-right or a transactionarrow-up-right, as specified at the time of creation. The data in them is not visible to other sessions, and is not loggedarrow-up-right. Temporary tables are often used to store intermediate data for a multi-step operation.

For more information, see CREATE TABLEarrow-up-right.TOAST

A mechanism by which large attributes of table rows are split and stored in a secondary table, called the TOAST table. Each relation with large attributes has its own TOAST table.

For more information, see Section 68.2arrow-up-right.Transaction

A combination of commands that must act as a single atomicarrow-up-right command: they all succeed or all fail as a single unit, and their effects are not visible to other sessionsarrow-up-right until the transaction is complete, and possibly even later, depending on the isolation level.

For more information, see Section 13.2arrow-up-right.Transaction ID

The numerical, unique, sequentially-assigned identifier that each transaction receives when it first causes a database modification. Frequently abbreviated as xid. When stored on disk, xids are only 32-bits wide, so only approximately four billion write transaction IDs can be generated; to permit the system to run for longer than that, epochs are used, also 32 bits wide. When the counter reaches the maximum xid value, it starts over at 3 (values under that are reserved) and the epoch value is incremented by one. In some contexts, the epoch and xid values are considered together as a single 64-bit value.

For more information, see Section 8.19arrow-up-right.Transactions per second (TPS)

Average number of transactions that are executed per second, totaled across all sessions active for a measured run. This is used as a measure of the performance characteristics of an instance.Trigger

A functionarrow-up-right which can be defined to execute whenever a certain operation (INSERT, UPDATE, DELETE, TRUNCATE) is applied to a relationarrow-up-right. A trigger executes within the same transactionarrow-up-right as the statement which invoked it, and if the function fails, then the invoking statement also fails.

For more information, see CREATE TRIGGERarrow-up-right.Tuple

A collection of attributesarrow-up-right in a fixed order. That order may be defined by the tablearrow-up-right (or other relationarrow-up-right) where the tuple is contained, in which case the tuple is often called a row. It may also be defined by the structure of a result set, in which case it is sometimes called a record.Unique constraint

A type of constraintarrow-up-right defined on a relationarrow-up-right which restricts the values allowed in one or a combination of columns so that each value or combination of values can only appear once in the relation — that is, no other row in the relation contains values that are equal to those.

Because null valuesarrow-up-right are not considered equal to each other, multiple rows with null values are allowed to exist without violating the unique constraint.Unlogged

The property of certain relationsarrow-up-right that the changes to them are not reflected in the WALarrow-up-right. This disables replication and crash recovery for these relations.

The primary use of unlogged tables is for storing transient work data that must be shared across processes.

Temporary tablesarrow-up-right are always unlogged.Update

An SQL command used to modify rowsarrow-up-right that may already exist in a specified tablearrow-up-right. It cannot create or remove rows.

For more information, see UPDATEarrow-up-right.User

A rolearrow-up-right that has the LOGIN privilege.User mapping

The translation of login credentials in the local databasearrow-up-right to credentials in a remote data system defined by a foreign data wrapperarrow-up-right.

For more information, see CREATE USER MAPPINGarrow-up-right.Vacuum

The process of removing outdated tuple versionsarrow-up-right from tables or materialized views, and other closely related processing required by PostgreSQL's implementation of MVCCarrow-up-right. This can be initiated through the use of the VACUUM command, but can also be handled automatically via autovacuumarrow-up-right processes.

For more information, see Section 24.1arrow-up-right .View

A relationarrow-up-right that is defined by a SELECT statement, but has no storage of its own. Any time a query references a view, the definition of the view is substituted into the query as if the user had typed it as a subquery instead of the name of the view.

For more information, see CREATE VIEWarrow-up-right.Visibility map (fork)

A storage structure that keeps metadata about each data page of a table's main fork. The visibility map entry for each page stores two bits: the first one (all-visible) indicates that all tuples in the page are visible to all transactions. The second one (all-frozen) indicates that all tuples in the page are marked frozen.WAL

See Write-ahead logarrow-up-right.WAL archiver (process)

A process that saves copies of WAL filesarrow-up-right for the purpose of creating backups or keeping replicasarrow-up-right current.

For more information, see Section 25.3arrow-up-right.WAL file

Also known as WAL segment or WAL segment file. Each of the sequentially-numbered files that provide storage space for WALarrow-up-right. The files are all of the same predefined size and are written in sequential order, interspersing changes as they occur in multiple simultaneous sessions. If the system crashes, the files are read in order, and each of the changes is replayed to restore the system to the state it was in before the crash.

Each WAL file can be released after a checkpointarrow-up-right writes all the changes in it to the corresponding data files. Releasing the file can be done either by deleting it, or by changing its name so that it will be used in the future, which is called recycling.

For more information, see Section 29.5arrow-up-right.WAL record

A low-level description of an individual data change. It contains sufficient information for the data change to be re-executed (replayed) in case a system failure causes the change to be lost. WAL records use a non-printable binary format.

For more information, see Section 29.5arrow-up-right.WAL segment

See WAL filearrow-up-right.WAL writer (process)

A process that writes WAL recordsarrow-up-right from shared memoryarrow-up-right to WAL filesarrow-up-right.

For more information, see Section 19.5arrow-up-right.Window function (routine)

A type of functionarrow-up-right used in a queryarrow-up-right that applies to a partitionarrow-up-right of the query's result setarrow-up-right; the function's result is based on values found in rowsarrow-up-right of the same partition or frame.

All aggregate functionsarrow-up-right can be used as window functions, but window functions can also be used to, for example, give ranks to each of the rows in the partition. Also known as analytic functions.

For more information, see Section 3.5arrow-up-right.Write-ahead log

The journal that keeps track of the changes in the database clusterarrow-up-right as user- and system-invoked operations take place. It comprises many individual WAL recordsarrow-up-right written sequentially to WAL filesarrow-up-right.

Last updated

Was this helpful?