## Appendix M. Glossary This is a list of terms and their meaning in the context of PostgreSQL and relational database systems in general. ACID [](glossary.html#GLOSSARY-ATOMICITY)*[Atomicity](glossary.html#GLOSSARY-ATOMICITY)*, [](glossary.html#GLOSSARY-CONSISTENCY)*[Consistency](glossary.html#GLOSSARY-CONSISTENCY)*, [](glossary.html#GLOSSARY-ISOLATION)*[Isolation](glossary.html#GLOSSARY-ISOLATION)*, and [](glossary.html#GLOSSARY-DURABILITY)*[Durability](glossary.html#GLOSSARY-DURABILITY)*. 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 [](glossary.html#GLOSSARY-FUNCTION)*[function](glossary.html#GLOSSARY-FUNCTION)* that combines (*aggregates*) multiple input values, for example by counting, averaging or adding, yielding a single output value. For more information, see [Section 9.21](functions-aggregate.html). See Also [Window function (routine)](glossary.html#GLOSSARY-WINDOW-FUNCTION). Analytic function See [Window function (routine)](glossary.html#GLOSSARY-WINDOW-FUNCTION). Analyze (operation) The process of collecting statistics from data in [](glossary.html#GLOSSARY-TABLE)*[tables](glossary.html#GLOSSARY-TABLE)* and other [](glossary.html#GLOSSARY-RELATION)*[relations](glossary.html#GLOSSARY-RELATION)* to help the [](glossary.html#GLOSSARY-PLANNER)*[query planner](glossary.html#GLOSSARY-PLANNER)* to make decisions about how to execute [](glossary.html#GLOSSARY-QUERY)*[queries](glossary.html#GLOSSARY-QUERY)*. (Don't confuse this term with the `ANALYZE` option to the [EXPLAIN](sql-explain.html) command.) For more information, see [ANALYZE](sql-analyze.html). Atomic In reference to a [](glossary.html#GLOSSARY-DATUM)*[datum](glossary.html#GLOSSARY-DATUM)*: the fact that its value cannot be broken down into smaller components. In reference to a [](glossary.html#GLOSSARY-TRANSACTION)*[database transaction](glossary.html#GLOSSARY-TRANSACTION)*: see [](glossary.html#GLOSSARY-ATOMICITY)*[atomicity](glossary.html#GLOSSARY-ATOMICITY)*. Atomicity The property of a [](glossary.html#GLOSSARY-TRANSACTION)*[transaction](glossary.html#GLOSSARY-TRANSACTION)* 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 [](glossary.html#GLOSSARY-TUPLE)*[tuple](glossary.html#GLOSSARY-TUPLE)*. Autovacuum (process) A set of background processes that routinely perform [](glossary.html#GLOSSARY-VACUUM)*[vacuum](glossary.html#GLOSSARY-VACUUM)* and [](glossary.html#GLOSSARY-ANALYZE)*[analyze](glossary.html#GLOSSARY-ANALYZE)* operations. For more information, see [Section 25.1.6](routine-vacuuming.html#AUTOVACUUM). Backend (process) Process of an [](glossary.html#GLOSSARY-INSTANCE)*[instance](glossary.html#GLOSSARY-INSTANCE)* which acts on behalf of a [](glossary.html#GLOSSARY-SESSION)*[client session](glossary.html#GLOSSARY-SESSION)* and handles its requests. (Don't confuse this term with the similar terms [](glossary.html#GLOSSARY-BACKGROUND-WORKER)*[Background Worker](glossary.html#GLOSSARY-BACKGROUND-WORKER)* or [](glossary.html#GLOSSARY-BACKGROUND-WRITER)*[Background Writer](glossary.html#GLOSSARY-BACKGROUND-WRITER)*). Background worker (process) Process within an [](glossary.html#GLOSSARY-INSTANCE)*[instance](glossary.html#GLOSSARY-INSTANCE)*, which runs system- or user-supplied code. Serves as infrastructure for several features in PostgreSQL, such as [](glossary.html#GLOSSARY-REPLICATION)*[logical replication](glossary.html#GLOSSARY-REPLICATION)* and [](glossary.html#GLOSSARY-PARALLEL-QUERY)*[parallel queries](glossary.html#GLOSSARY-PARALLEL-QUERY)*. In addition, [](glossary.html#GLOSSARY-EXTENSION)*[Extensions](glossary.html#GLOSSARY-EXTENSION)* can add custom background worker processes. For more information, see [Chapter 48](bgworker.html). Background writer (process) A process that writes dirty [](glossary.html#GLOSSARY-DATA-PAGE)*[data pages](glossary.html#GLOSSARY-DATA-PAGE)* from [](glossary.html#GLOSSARY-SHARED-MEMORY)*[shared memory](glossary.html#GLOSSARY-SHARED-MEMORY)* 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 20.4.5](runtime-config-resource.html#RUNTIME-CONFIG-RESOURCE-BACKGROUND-WRITER). Base Backup A binary copy of all [](glossary.html#GLOSSARY-DB-CLUSTER)*[database cluster](glossary.html#GLOSSARY-DB-CLUSTER)* files. It is generated by the tool [pg\_basebackup](app-pgbasebackup.html). In combination with WAL files it can be used as the starting point for recovery, log shipping, or streaming replication. 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 [](glossary.html#GLOSSARY-DATUM)*[datum](glossary.html#GLOSSARY-DATUM)* from its current data type to another data type. For more information, see [CREATE CAST](sql-createcast.html). Catalog The SQL standard uses this term to indicate what is called a [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)* in PostgreSQL's terminology. (Don't confuse this term with [](glossary.html#GLOSSARY-SYSTEM-CATALOG)*[system catalog](glossary.html#GLOSSARY-SYSTEM-CATALOG)*). For more information, see [Section 23.1](manage-ag-overview.html). Check constraint A type of [](glossary.html#GLOSSARY-CONSTRAINT)*[constraint](glossary.html#GLOSSARY-CONSTRAINT)* defined on a [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)* which restricts the values allowed in one or more [](glossary.html#GLOSSARY-ATTRIBUTE)*[attributes](glossary.html#GLOSSARY-ATTRIBUTE)*. 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.4](ddl-constraints.html). Checkpoint A point in the [](glossary.html#GLOSSARY-WAL)*[WAL](glossary.html#GLOSSARY-WAL)* sequence at which it is guaranteed that the heap and index data files have been updated with all information from [](glossary.html#GLOSSARY-SHARED-MEMORY)*[shared memory](glossary.html#GLOSSARY-SHARED-MEMORY)* 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 30.5](wal-configuration.html). Checkpointer (process) A specialized process responsible for executing checkpoints. Class (archaic) See [Relation](glossary.html#GLOSSARY-RELATION). Client (process) Any process, possibly remote, that establishes a [](glossary.html#GLOSSARY-SESSION)*[session](glossary.html#GLOSSARY-SESSION)* by [](glossary.html#GLOSSARY-CONNECTION)*[connecting](glossary.html#GLOSSARY-CONNECTION)* to an [](glossary.html#GLOSSARY-INSTANCE)*[instance](glossary.html#GLOSSARY-INSTANCE)* to interact with a [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)*. Column An [](glossary.html#GLOSSARY-ATTRIBUTE)*[attribute](glossary.html#GLOSSARY-ATTRIBUTE)* found in a [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)* or [](glossary.html#GLOSSARY-VIEW)*[view](glossary.html#GLOSSARY-VIEW)*. Commit The act of finalizing a [](glossary.html#GLOSSARY-TRANSACTION)*[transaction](glossary.html#GLOSSARY-TRANSACTION)* within the [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)*, which makes it visible to other transactions and assures its [](glossary.html#GLOSSARY-DURABILITY)*[durability](glossary.html#GLOSSARY-DURABILITY)*. For more information, see [COMMIT](sql-commit.html). Concurrency The concept that multiple independent operations happen within the [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)* at the same time. In PostgreSQL, concurrency is controlled by the [](glossary.html#GLOSSARY-MVCC)*[multiversion concurrency control](glossary.html#GLOSSARY-MVCC)* mechanism. Connection An established line of communication between a client process and a [](glossary.html#GLOSSARY-BACKEND)*[backend](glossary.html#GLOSSARY-BACKEND)* process, usually over a network, supporting a [](glossary.html#GLOSSARY-SESSION)*[session](glossary.html#GLOSSARY-SESSION)*. This term is sometimes used as a synonym for session. For more information, see [Section 20.3](runtime-config-connection.html). Consistency The property that the data in the [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)* is always in compliance with [](glossary.html#GLOSSARY-CONSTRAINT)*[integrity constraints](glossary.html#GLOSSARY-CONSTRAINT)*. 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 [](glossary.html#GLOSSARY-ROLLBACK)*[rolled back](glossary.html#GLOSSARY-ROLLBACK)*. This is one of the ACID properties. Constraint A restriction on the values of data allowed within a [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)*, or in attributes of a *domain*. For more information, see [Section 5.4](ddl-constraints.html). Data area See [Data directory](glossary.html#GLOSSARY-DATA-DIRECTORY). Database A named collection of [](glossary.html#GLOSSARY-SQL-OBJECT)*[local SQL objects](glossary.html#GLOSSARY-SQL-OBJECT)*. For more information, see [Section 23.1](manage-ag-overview.html). 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 [Instance](glossary.html#GLOSSARY-INSTANCE). Data directory The base directory on the file system of a [](glossary.html#GLOSSARY-SERVER)*[server](glossary.html#GLOSSARY-SERVER)* that contains all data files and subdirectories associated with a [](glossary.html#GLOSSARY-DB-CLUSTER)*[database cluster](glossary.html#GLOSSARY-DB-CLUSTER)* (with the exception of [](glossary.html#GLOSSARY-TABLESPACE)*[tablespaces](glossary.html#GLOSSARY-TABLESPACE)*, and optionally [](glossary.html#GLOSSARY-WAL)*[WAL](glossary.html#GLOSSARY-WAL)*). The environment variable `PGDATA` is commonly used to refer to the data directory. A [](glossary.html#GLOSSARY-DB-CLUSTER)*[cluster](glossary.html#GLOSSARY-DB-CLUSTER)*'s storage space comprises the data directory plus any additional tablespaces. For more information, see [Section 70.1](storage-file-layout.html). 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 [](glossary.html#GLOSSARY-SHARED-MEMORY)*[shared buffers](glossary.html#GLOSSARY-SHARED-MEMORY)* 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 [](glossary.html#GLOSSARY-TUPLE)*[rows](glossary.html#GLOSSARY-TUPLE)* from a given [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)* or [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)*. For more information, see [DELETE](sql-delete.html). Durability The assurance that once a [](glossary.html#GLOSSARY-TRANSACTION)*[transaction](glossary.html#GLOSSARY-TRANSACTION)* has been [](glossary.html#GLOSSARY-COMMIT)*[committed](glossary.html#GLOSSARY-COMMIT)*, the changes remain even after a system failure or crash. This is one of the ACID properties. Epoch See [Transaction ID](glossary.html#GLOSSARY-XID). Extension A software add-on package that can be installed on an [](glossary.html#GLOSSARY-INSTANCE)*[instance](glossary.html#GLOSSARY-INSTANCE)* to get extra features. For more information, see [Section 38.17](extend-extensions.html). File segment A physical file which stores data for a given [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)*. 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 70.1](storage-file-layout.html). (Don't confuse this term with the similar term [](glossary.html#GLOSSARY-WAL-FILE)*[WAL segment](glossary.html#GLOSSARY-WAL-FILE)*). Foreign data wrapper A means of representing data that is not contained in the local [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)* so that it appears as if were in local [](glossary.html#GLOSSARY-TABLE)*[table(s)](glossary.html#GLOSSARY-TABLE)*. With a foreign data wrapper it is possible to define a [](glossary.html#GLOSSARY-FOREIGN-SERVER)*[foreign server](glossary.html#GLOSSARY-FOREIGN-SERVER)* and [](glossary.html#GLOSSARY-FOREIGN-TABLE)*[foreign tables](glossary.html#GLOSSARY-FOREIGN-TABLE)*. For more information, see [CREATE FOREIGN DATA WRAPPER](sql-createforeigndatawrapper.html). Foreign key A type of [](glossary.html#GLOSSARY-CONSTRAINT)*[constraint](glossary.html#GLOSSARY-CONSTRAINT)* defined on one or more [](glossary.html#GLOSSARY-COLUMN)*[columns](glossary.html#GLOSSARY-COLUMN)* in a [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)* which requires the value(s) in those [](glossary.html#GLOSSARY-COLUMN)*[columns](glossary.html#GLOSSARY-COLUMN)* to identify zero or one [](glossary.html#GLOSSARY-TUPLE)*[row](glossary.html#GLOSSARY-TUPLE)* in another (or, infrequently, the same) [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)*. Foreign server A named collection of [](glossary.html#GLOSSARY-FOREIGN-TABLE)*[foreign tables](glossary.html#GLOSSARY-FOREIGN-TABLE)* which all use the same [](glossary.html#GLOSSARY-FOREIGN-DATA-WRAPPER)*[foreign data wrapper](glossary.html#GLOSSARY-FOREIGN-DATA-WRAPPER)* and have other configuration values in common. For more information, see [CREATE SERVER](sql-createserver.html). Foreign table (relation) A [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)* which appears to have [](glossary.html#GLOSSARY-TUPLE)*[rows](glossary.html#GLOSSARY-TUPLE)* and [](glossary.html#GLOSSARY-COLUMN)*[columns](glossary.html#GLOSSARY-COLUMN)* similar to a regular [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)*, but will forward requests for data through its [](glossary.html#GLOSSARY-FOREIGN-DATA-WRAPPER)*[foreign data wrapper](glossary.html#GLOSSARY-FOREIGN-DATA-WRAPPER)*, which will return [](glossary.html#GLOSSARY-RESULT-SET)*[result sets](glossary.html#GLOSSARY-RESULT-SET)* structured according to the definition of the [](glossary.html#GLOSSARY-FOREIGN-TABLE)*[foreign table](glossary.html#GLOSSARY-FOREIGN-TABLE)*. For more information, see [CREATE FOREIGN TABLE](sql-createforeigntable.html). 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 [](glossary.html#GLOSSARY-FSM)*[free space map](glossary.html#GLOSSARY-FSM)* and the [](glossary.html#GLOSSARY-VM)*[visibility map](glossary.html#GLOSSARY-VM)*. [](glossary.html#GLOSSARY-UNLOGGED)*[Unlogged relations](glossary.html#GLOSSARY-UNLOGGED)* 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 70.3](storage-fsm.html). 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 [](glossary.html#GLOSSARY-RESULT-SET)*[sets](glossary.html#GLOSSARY-RESULT-SET)*; those are called *set-returning functions*. Functions can also be used for [](glossary.html#GLOSSARY-TRIGGER)*[triggers](glossary.html#GLOSSARY-TRIGGER)* to invoke. For more information, see [CREATE FUNCTION](sql-createfunction.html). Grant An SQL command that is used to allow a [](glossary.html#GLOSSARY-USER)*[user](glossary.html#GLOSSARY-USER)* or [](glossary.html#GLOSSARY-ROLE)*[role](glossary.html#GLOSSARY-ROLE)* to access specific objects within the [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)*. For more information, see [GRANT](sql-grant.html). Heap Contains the values of [](glossary.html#GLOSSARY-TUPLE)*[row](glossary.html#GLOSSARY-TUPLE)* attributes (i.e., the data) for a [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)*. The heap is realized within one or more [](glossary.html#GLOSSARY-FILE-SEGMENT)*[file segments](glossary.html#GLOSSARY-FILE-SEGMENT)* in the relation's [](glossary.html#GLOSSARY-FORK)*[main fork](glossary.html#GLOSSARY-FORK)*. Host A computer that communicates with other computers over a network. This is sometimes used as a synonym for [](glossary.html#GLOSSARY-SERVER)*[server](glossary.html#GLOSSARY-SERVER)*. It is also used to refer to a computer where [](glossary.html#GLOSSARY-CLIENT)*[client processes](glossary.html#GLOSSARY-CLIENT)* run. Index (relation) A [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)* that contains data derived from a [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)* or [](glossary.html#GLOSSARY-MATERIALIZED-VIEW)*[materialized view](glossary.html#GLOSSARY-MATERIALIZED-VIEW)*. Its internal structure supports fast retrieval of and access to the original data. For more information, see [CREATE INDEX](sql-createindex.html). Insert An SQL command used to add new data into a [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)*. For more information, see [INSERT](sql-insert.html). Instance A group of backend and auxiliary processes that communicate using a common shared memory area. One [](glossary.html#GLOSSARY-POSTMASTER)*[postmaster process](glossary.html#GLOSSARY-POSTMASTER)* manages the instance; one instance manages exactly one [](glossary.html#GLOSSARY-DB-CLUSTER)*[database cluster](glossary.html#GLOSSARY-DB-CLUSTER)* with all its databases. Many instances can run on the same [](glossary.html#GLOSSARY-SERVER)*[server](glossary.html#GLOSSARY-SERVER)* 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, [](glossary.html#GLOSSARY-CONNECTION)*[connections](glossary.html#GLOSSARY-CONNECTION)* to [](glossary.html#GLOSSARY-CLIENT)*[client processes](glossary.html#GLOSSARY-CLIENT)*, privilege verification, crash recovery, replication, etc. Isolation The property that the effects of a transaction are not visible to [](glossary.html#GLOSSARY-CONCURRENCY)*[concurrent transactions](glossary.html#GLOSSARY-CONCURRENCY)* before it commits. This is one of the ACID properties. For more information, see [Section 13.2](transaction-iso.html). Join An operation and SQL keyword used in [](glossary.html#GLOSSARY-QUERY)*[queries](glossary.html#GLOSSARY-QUERY)* for combining data from multiple [](glossary.html#GLOSSARY-RELATION)*[relations](glossary.html#GLOSSARY-RELATION)*. Key A means of identifying a [](glossary.html#GLOSSARY-TUPLE)*[row](glossary.html#GLOSSARY-TUPLE)* within a [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)* or other [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)* by values contained within one or more [](glossary.html#GLOSSARY-ATTRIBUTE)*[attributes](glossary.html#GLOSSARY-ATTRIBUTE)* 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 25.3](logfile-maintenance.html). Logged A [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)* is considered [](glossary.html#GLOSSARY-LOGGED)*[logged](glossary.html#GLOSSARY-LOGGED)* if changes to it are sent to the [](glossary.html#GLOSSARY-WAL)*[WAL](glossary.html#GLOSSARY-WAL)*. By default, all regular tables are logged. A table can be specified as [](glossary.html#GLOSSARY-UNLOGGED)*[unlogged](glossary.html#GLOSSARY-UNLOGGED)* either at creation time or via the `ALTER TABLE` command. Logger (process) If activated, the process writes information about database events into the current [](glossary.html#GLOSSARY-LOG-FILE)*[log file](glossary.html#GLOSSARY-LOG-FILE)*. When reaching certain time- or volume-dependent criteria, a new log file is created. Also called *syslogger*. For more information, see [Section 20.8](runtime-config-logging.html). Log record Archaic term for a [](glossary.html#GLOSSARY-WAL-RECORD)*[WAL record](glossary.html#GLOSSARY-WAL-RECORD)*. Master (server) See [Primary (server)](glossary.html#GLOSSARY-PRIMARY-SERVER). 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 [](glossary.html#GLOSSARY-MATERIALIZED-VIEW)*[materialized view](glossary.html#GLOSSARY-MATERIALIZED-VIEW)*, 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 [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)* that is defined by a `SELECT` statement (just like a [](glossary.html#GLOSSARY-VIEW)*[view](glossary.html#GLOSSARY-VIEW)*), but stores data in the same way that a [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)* does. It cannot be modified via `INSERT`, `UPDATE`, or `DELETE` operations. For more information, see [CREATE MATERIALIZED VIEW](sql-creatematerializedview.html). Multi-version concurrency control (MVCC) A mechanism designed to allow several [](glossary.html#GLOSSARY-TRANSACTION)*[transactions](glossary.html#GLOSSARY-TRANSACTION)* 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 [](glossary.html#GLOSSARY-TUPLE)*[tuples](glossary.html#GLOSSARY-TUPLE)* 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 planner](glossary.html#GLOSSARY-PLANNER). Parallel query The ability to handle parts of executing a [](glossary.html#GLOSSARY-QUERY)*[query](glossary.html#GLOSSARY-QUERY)* 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 [](glossary.html#GLOSSARY-PARTITIONED-TABLE)*[partitioned table](glossary.html#GLOSSARY-PARTITIONED-TABLE)*: 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 [](glossary.html#GLOSSARY-WINDOW-FUNCTION)*[window function](glossary.html#GLOSSARY-WINDOW-FUNCTION)* in a [](glossary.html#GLOSSARY-QUERY)*[query](glossary.html#GLOSSARY-QUERY)*, a partition is a user-defined criterion that identifies which neighboring [](glossary.html#GLOSSARY-TUPLE)*[rows](glossary.html#GLOSSARY-TUPLE)* of the [](glossary.html#GLOSSARY-RESULT-SET)*[query's result set](glossary.html#GLOSSARY-RESULT-SET)* can be considered by the function. Partitioned table (relation) A [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)* that is in semantic terms the same as a [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)*, but whose storage is distributed across several [](glossary.html#GLOSSARY-PARTITION)*[partitions](glossary.html#GLOSSARY-PARTITION)*. Postmaster (process) The very first process of an [](glossary.html#GLOSSARY-INSTANCE)*[instance](glossary.html#GLOSSARY-INSTANCE)*. It starts and manages the other auxiliary processes and creates [](glossary.html#GLOSSARY-BACKEND)*[backend processes](glossary.html#GLOSSARY-BACKEND)* on demand. For more information, see [Section 19.3](server-start.html). Primary key A special case of a [](glossary.html#GLOSSARY-UNIQUE-CONSTRAINT)*[unique constraint](glossary.html#GLOSSARY-UNIQUE-CONSTRAINT)* defined on a [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)* or other [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)* that also guarantees that all of the [](glossary.html#GLOSSARY-ATTRIBUTE)*[attributes](glossary.html#GLOSSARY-ATTRIBUTE)* within the [](glossary.html#GLOSSARY-PRIMARY-KEY)*[primary key](glossary.html#GLOSSARY-PRIMARY-KEY)* do not have [](glossary.html#GLOSSARY-NULL)*[null](glossary.html#GLOSSARY-NULL)* 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 [](glossary.html#GLOSSARY-DATABASE)*[databases](glossary.html#GLOSSARY-DATABASE)* are linked via [](glossary.html#GLOSSARY-REPLICATION)*[replication](glossary.html#GLOSSARY-REPLICATION)*, the [](glossary.html#GLOSSARY-SERVER)*[server](glossary.html#GLOSSARY-SERVER)* 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 PROCEDURE](sql-createprocedure.html). Query A request sent by a client to a [](glossary.html#GLOSSARY-BACKEND)*[backend](glossary.html#GLOSSARY-BACKEND)*, 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 [](glossary.html#GLOSSARY-QUERY)*[queries](glossary.html#GLOSSARY-QUERY)*. Also known as *query optimizer*, *optimizer*, or simply *planner*. Record See [Tuple](glossary.html#GLOSSARY-TUPLE). Recycling See [WAL file](glossary.html#GLOSSARY-WAL-FILE). Referential integrity A means of restricting data in one [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)* by a [](glossary.html#GLOSSARY-FOREIGN-KEY)*[foreign key](glossary.html#GLOSSARY-FOREIGN-KEY)* so that it must have matching data in another [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)*. Relation The generic term for all objects in a [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)* that have a name and a list of [](glossary.html#GLOSSARY-ATTRIBUTE)*[attributes](glossary.html#GLOSSARY-ATTRIBUTE)* defined in a specific order. [](glossary.html#GLOSSARY-TABLE)*[Tables](glossary.html#GLOSSARY-TABLE)*, [](glossary.html#GLOSSARY-SEQUENCE)*[sequences](glossary.html#GLOSSARY-SEQUENCE)*, [](glossary.html#GLOSSARY-VIEW)*[views](glossary.html#GLOSSARY-VIEW)*, [](glossary.html#GLOSSARY-FOREIGN-TABLE)*[foreign tables](glossary.html#GLOSSARY-FOREIGN-TABLE)*, [](glossary.html#GLOSSARY-MATERIALIZED-VIEW)*[materialized views](glossary.html#GLOSSARY-MATERIALIZED-VIEW)*, composite types, and [](glossary.html#GLOSSARY-INDEX)*[indexes](glossary.html#GLOSSARY-INDEX)* 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 [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)* that is paired with a [](glossary.html#GLOSSARY-PRIMARY-SERVER)*[primary](glossary.html#GLOSSARY-PRIMARY-SERVER)* 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 [](glossary.html#GLOSSARY-PRIMARY-SERVER)*[primary](glossary.html#GLOSSARY-PRIMARY-SERVER)* becomes unavailable. Replication The act of reproducing data on one [](glossary.html#GLOSSARY-SERVER)*[server](glossary.html#GLOSSARY-SERVER)* onto another server called a [](glossary.html#GLOSSARY-REPLICA)*[replica](glossary.html#GLOSSARY-REPLICA)*. 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 [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)* transmitted from a [](glossary.html#GLOSSARY-BACKEND)*[backend process](glossary.html#GLOSSARY-BACKEND)* to a [](glossary.html#GLOSSARY-CLIENT)*[client](glossary.html#GLOSSARY-CLIENT)* 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 [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)* objects for a named list of [](glossary.html#GLOSSARY-ROLE)*[roles](glossary.html#GLOSSARY-ROLE)*. For more information, see [REVOKE](sql-revoke.html). Role A collection of access privileges to the [](glossary.html#GLOSSARY-DATABASE)*[instance](glossary.html#GLOSSARY-DATABASE)*. Roles are themselves a privilege that can be granted to other roles. This is often done for convenience or to ensure completeness when multiple [](glossary.html#GLOSSARY-USER)*[users](glossary.html#GLOSSARY-USER)* need the same privileges. For more information, see [CREATE ROLE](sql-createrole.html). Rollback A command to undo all of the operations performed since the beginning of a [](glossary.html#GLOSSARY-TRANSACTION)*[transaction](glossary.html#GLOSSARY-TRANSACTION)*. For more information, see [ROLLBACK](sql-rollback.html). 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 [](glossary.html#GLOSSARY-FUNCTION)*[functions](glossary.html#GLOSSARY-FUNCTION)* (including set-returning functions and [](glossary.html#GLOSSARY-TRIGGER)*[trigger functions](glossary.html#GLOSSARY-TRIGGER)*), [](glossary.html#GLOSSARY-AGGREGATE)*[aggregate functions](glossary.html#GLOSSARY-AGGREGATE)*, and [](glossary.html#GLOSSARY-PROCEDURE)*[procedures](glossary.html#GLOSSARY-PROCEDURE)*. Many routines are already defined within PostgreSQL itself, but user-defined ones can also be added. Row See [Tuple](glossary.html#GLOSSARY-TUPLE). Savepoint A special mark in the sequence of steps in a [](glossary.html#GLOSSARY-TRANSACTION)*[transaction](glossary.html#GLOSSARY-TRANSACTION)*. Data modifications after this point in time may be reverted to the time of the savepoint. For more information, see [SAVEPOINT](sql-savepoint.html). Schema A schema is a namespace for [](glossary.html#GLOSSARY-SQL-OBJECT)*[SQL objects](glossary.html#GLOSSARY-SQL-OBJECT)*, which all reside in the same [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)*. 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 ([](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)* definitions, [](glossary.html#GLOSSARY-CONSTRAINT)*[constraints](glossary.html#GLOSSARY-CONSTRAINT)*, comments, etc) for a given [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)* or subset thereof. For more information, see [Section 5.9](ddl-schemas.html). Segment See [File segment](glossary.html#GLOSSARY-FILE-SEGMENT). Select The SQL command used to request data from a [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)*. Normally, `SELECT` commands are not expected to modify the [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)* in any way, but it is possible that [](glossary.html#GLOSSARY-FUNCTION)*[functions](glossary.html#GLOSSARY-FUNCTION)* invoked within the query could have side effects that do modify data. For more information, see [SELECT](sql-select.html). 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 [](glossary.html#GLOSSARY-PRIMARY-KEY)*[primary key](glossary.html#GLOSSARY-PRIMARY-KEY)* values. Server A computer on which PostgreSQL [](glossary.html#GLOSSARY-INSTANCE)*[instances](glossary.html#GLOSSARY-INSTANCE)* 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 [](glossary.html#GLOSSARY-CONNECTION)*[connection](glossary.html#GLOSSARY-CONNECTION)*. Shared memory RAM which is used by the processes common to an [](glossary.html#GLOSSARY-INSTANCE)*[instance](glossary.html#GLOSSARY-INSTANCE)*. It mirrors parts of [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)* files, provides a transient area for [](glossary.html#GLOSSARY-WAL-RECORD)*[WAL records](glossary.html#GLOSSARY-WAL-RECORD)*, 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 20.4.1](runtime-config-resource.html#RUNTIME-CONFIG-RESOURCE-MEMORY). 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 reside in a specific [](glossary.html#GLOSSARY-SCHEMA)*[schema](glossary.html#GLOSSARY-SCHEMA)* in their containing database, such as [](glossary.html#GLOSSARY-RELATION)*[relations](glossary.html#GLOSSARY-RELATION)* (all types), [](glossary.html#GLOSSARY-FUNCTION)*[routines](glossary.html#GLOSSARY-FUNCTION)* (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 reside in schemas; some examples are [](glossary.html#GLOSSARY-EXTENSION)*[extensions](glossary.html#GLOSSARY-EXTENSION)*, [](glossary.html#GLOSSARY-CAST)*[data type casts](glossary.html#GLOSSARY-CAST)*, and [](glossary.html#GLOSSARY-FOREIGN-DATA-WRAPPER)*[foreign data wrappers](glossary.html#GLOSSARY-FOREIGN-DATA-WRAPPER)*. The names of such objects of the same type are enforced to be unique within the database. Other object types, such as [](glossary.html#GLOSSARY-ROLE)*[roles](glossary.html#GLOSSARY-ROLE)*, [](glossary.html#GLOSSARY-TABLESPACE)*[tablespaces](glossary.html#GLOSSARY-TABLESPACE)*, 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 23.1](manage-ag-overview.html). SQL standard A series of documents that define the SQL language. Standby (server) See [Replica (server)](glossary.html#GLOSSARY-REPLICA). Stats collector (process) This process collects statistical information about the [](glossary.html#GLOSSARY-INSTANCE)*[instance](glossary.html#GLOSSARY-INSTANCE)*'s activities. For more information, see [Section 28.2](monitoring-stats.html). System catalog A collection of [](glossary.html#GLOSSARY-TABLE)*[tables](glossary.html#GLOSSARY-TABLE)* which describe the structure of all [](glossary.html#GLOSSARY-SQL-OBJECT)*[SQL objects](glossary.html#GLOSSARY-SQL-OBJECT)* 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 [](glossary.html#GLOSSARY-VIEW)*[views](glossary.html#GLOSSARY-VIEW)*, 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 37](information-schema.html)) that expose some of the same and additional information as mandated by the [](glossary.html#GLOSSARY-SQL-STANDARD)*[SQL standard](glossary.html#GLOSSARY-SQL-STANDARD)*. For more information, see [Section 5.9](ddl-schemas.html). Table A collection of [](glossary.html#GLOSSARY-TUPLE)*[tuples](glossary.html#GLOSSARY-TUPLE)* having a common data structure (the same number of [](glossary.html#GLOSSARY-ATTRIBUTE)*[attributes](glossary.html#GLOSSARY-ATTRIBUTE)*, in the same order, having the same name and type per position). A table is the most common form of [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)* in PostgreSQL. For more information, see [CREATE TABLE](sql-createtable.html). Tablespace A named location on the server file system. All [](glossary.html#GLOSSARY-SQL-OBJECT)*[SQL objects](glossary.html#GLOSSARY-SQL-OBJECT)* which require storage beyond their definition in the [](glossary.html#GLOSSARY-SYSTEM-CATALOG)*[system catalog](glossary.html#GLOSSARY-SYSTEM-CATALOG)* 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 23.6](manage-ag-tablespaces.html). Temporary table [](glossary.html#GLOSSARY-TABLE)*[Tables](glossary.html#GLOSSARY-TABLE)* that exist either for the lifetime of a [](glossary.html#GLOSSARY-SESSION)*[session](glossary.html#GLOSSARY-SESSION)* or a [](glossary.html#GLOSSARY-TRANSACTION)*[transaction](glossary.html#GLOSSARY-TRANSACTION)*, as specified at the time of creation. The data in them is not visible to other sessions, and is not [](glossary.html#GLOSSARY-LOGGED)*[logged](glossary.html#GLOSSARY-LOGGED)*. Temporary tables are often used to store intermediate data for a multi-step operation. For more information, see [CREATE TABLE](sql-createtable.html). 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 70.2](storage-toast.html). Transaction A combination of commands that must act as a single [](glossary.html#GLOSSARY-ATOMIC)*[atomic](glossary.html#GLOSSARY-ATOMIC)* command: they all succeed or all fail as a single unit, and their effects are not visible to other [](glossary.html#GLOSSARY-SESSION)*[sessions](glossary.html#GLOSSARY-SESSION)* until the transaction is complete, and possibly even later, depending on the isolation level. For more information, see [Section 13.2](transaction-iso.html). 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.19](datatype-oid.html). 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 [](glossary.html#GLOSSARY-FUNCTION)*[function](glossary.html#GLOSSARY-FUNCTION)* which can be defined to execute whenever a certain operation (`INSERT`, `UPDATE`, `DELETE`, `TRUNCATE`) is applied to a [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)*. A trigger executes within the same [](glossary.html#GLOSSARY-TRANSACTION)*[transaction](glossary.html#GLOSSARY-TRANSACTION)* as the statement which invoked it, and if the function fails, then the invoking statement also fails. For more information, see [CREATE TRIGGER](sql-createtrigger.html). Tuple A collection of [](glossary.html#GLOSSARY-ATTRIBUTE)*[attributes](glossary.html#GLOSSARY-ATTRIBUTE)* in a fixed order. That order may be defined by the [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)* (or other [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)*) 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 [](glossary.html#GLOSSARY-CONSTRAINT)*[constraint](glossary.html#GLOSSARY-CONSTRAINT)* defined on a [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)* 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 [](glossary.html#GLOSSARY-NULL)*[null values](glossary.html#GLOSSARY-NULL)* 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 [](glossary.html#GLOSSARY-RELATION)*[relations](glossary.html#GLOSSARY-RELATION)* that the changes to them are not reflected in the [](glossary.html#GLOSSARY-WAL)*[WAL](glossary.html#GLOSSARY-WAL)*. 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. [](glossary.html#GLOSSARY-TEMPORARY-TABLE)*[Temporary tables](glossary.html#GLOSSARY-TEMPORARY-TABLE)* are always unlogged. Update An SQL command used to modify [](glossary.html#GLOSSARY-TUPLE)*[rows](glossary.html#GLOSSARY-TUPLE)* that may already exist in a specified [](glossary.html#GLOSSARY-TABLE)*[table](glossary.html#GLOSSARY-TABLE)*. It cannot create or remove rows. For more information, see [UPDATE](sql-update.html). User A [](glossary.html#GLOSSARY-ROLE)*[role](glossary.html#GLOSSARY-ROLE)* that has the `LOGIN` privilege. User mapping The translation of login credentials in the local [](glossary.html#GLOSSARY-DATABASE)*[database](glossary.html#GLOSSARY-DATABASE)* to credentials in a remote data system defined by a [](glossary.html#GLOSSARY-FOREIGN-DATA-WRAPPER)*[foreign data wrapper](glossary.html#GLOSSARY-FOREIGN-DATA-WRAPPER)*. For more information, see [CREATE USER MAPPING](sql-createusermapping.html). Vacuum The process of removing outdated [](glossary.html#GLOSSARY-TUPLE)*[tuple versions](glossary.html#GLOSSARY-TUPLE)* from tables or materialized views, and other closely related processing required by PostgreSQL's implementation of [](glossary.html#GLOSSARY-MVCC)*[MVCC](glossary.html#GLOSSARY-MVCC)*. This can be initiated through the use of the `VACUUM` command, but can also be handled automatically via [](glossary.html#GLOSSARY-AUTOVACUUM)*[autovacuum](glossary.html#GLOSSARY-AUTOVACUUM)* processes. For more information, see [Section 25.1](routine-vacuuming.html) . View A [](glossary.html#GLOSSARY-RELATION)*[relation](glossary.html#GLOSSARY-RELATION)* 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 VIEW](sql-createview.html). 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 log](glossary.html#GLOSSARY-WAL). WAL archiver (process) A process that saves copies of [](glossary.html#GLOSSARY-WAL-FILE)*[WAL files](glossary.html#GLOSSARY-WAL-FILE)* for the purpose of creating backups or keeping [](glossary.html#GLOSSARY-REPLICA)*[replicas](glossary.html#GLOSSARY-REPLICA)* current. For more information, see [Section 26.3](continuous-archiving.html). WAL file Also known as *WAL segment* or *WAL segment file*. Each of the sequentially-numbered files that provide storage space for [](glossary.html#GLOSSARY-WAL)*[WAL](glossary.html#GLOSSARY-WAL)*. 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 [](glossary.html#GLOSSARY-CHECKPOINT)*[checkpoint](glossary.html#GLOSSARY-CHECKPOINT)* 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 30.6](wal-internals.html). 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 30.6](wal-internals.html). WAL segment See [WAL file](glossary.html#GLOSSARY-WAL-FILE). WAL writer (process) A process that writes [](glossary.html#GLOSSARY-WAL-RECORD)*[WAL records](glossary.html#GLOSSARY-WAL-RECORD)* from [](glossary.html#GLOSSARY-SHARED-MEMORY)*[shared memory](glossary.html#GLOSSARY-SHARED-MEMORY)* to [](glossary.html#GLOSSARY-WAL-FILE)*[WAL files](glossary.html#GLOSSARY-WAL-FILE)*. For more information, see [Section 20.5](runtime-config-wal.html). Window function (routine) A type of [](glossary.html#GLOSSARY-FUNCTION)*[function](glossary.html#GLOSSARY-FUNCTION)* used in a [](glossary.html#GLOSSARY-QUERY)*[query](glossary.html#GLOSSARY-QUERY)* that applies to a [](glossary.html#GLOSSARY-PARTITION)*[partition](glossary.html#GLOSSARY-PARTITION)* of the query's [](glossary.html#GLOSSARY-RESULT-SET)*[result set](glossary.html#GLOSSARY-RESULT-SET)*; the function's result is based on values found in [](glossary.html#GLOSSARY-TUPLE)*[rows](glossary.html#GLOSSARY-TUPLE)* of the same partition or frame. All [](glossary.html#GLOSSARY-AGGREGATE)*[aggregate functions](glossary.html#GLOSSARY-AGGREGATE)* 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.5](tutorial-window.html). Write-ahead log The journal that keeps track of the changes in the [](glossary.html#GLOSSARY-DB-CLUSTER)*[database cluster](glossary.html#GLOSSARY-DB-CLUSTER)* as user- and system-invoked operations take place. It comprises many individual [](glossary.html#GLOSSARY-WAL-RECORD)*[WAL records](glossary.html#GLOSSARY-WAL-RECORD)* written sequentially to [](glossary.html#GLOSSARY-WAL-FILE)*[WAL files](glossary.html#GLOSSARY-WAL-FILE)*.