EDB PostgreSQL Associate study materials
EDB PostgreSQL Associate study resources

EDB PostgreSQL Associate key terms

EDB PostgreSQL Associate · Get comfortable with the vocabulary.

initdb

The utility that creates a new PostgreSQL data directory, generating the system catalogs, template databases, and configuration files needed before the server can start for the first time.

Related: pg_ctl, System catalog (pg_catalog)
pg_ctl

Command-line utility used to start, stop, restart, reload, and check the status of a PostgreSQL server, and to send signals to it without connecting to the database.

Related: initdb
shared_buffers

The server parameter that sets how much memory PostgreSQL reserves for caching data pages in shared memory; it is the primary cache consulted before reading blocks from disk.

Related: Autovacuum, EXPLAIN ANALYZE
WAL (write-ahead log)

A log of every change made to data files, written to disk before the changes themselves; it enables crash recovery and is the basis for replication and point-in-time recovery.

Related: Checkpoint, Point-in-time recovery (PITR), Streaming replication
Checkpoint

A server operation that writes all dirty buffers to disk and records a log position, so crash recovery only has to replay WAL written after that point.

Related: WAL (write-ahead log), pg_basebackup
MVCC (multiversion concurrency control)

A concurrency design in which an update writes a new row version instead of overwriting the old one, so readers see a consistent snapshot without blocking writers, and writers do not block readers.

Related: Autovacuum, Transaction (BEGIN/COMMIT)
TOAST

A storage mechanism that moves large variable-length column values into a separate side table, compressing them, so the main table's rows stay within the page size limit.

Related: JSONB
JSONB

A data type that stores JSON documents in a decomposed binary form, slightly slower to write than json but able to support indexing and fast operators for querying keys and values.

Related: TOAST
NULL

A marker for an unknown or missing value; comparisons with it return unknown rather than true or false, so rows are tested with IS NULL and IS NOT NULL.

Related: Foreign key
Identity column

A column definition that fills values automatically from an owned sequence, offering the SQL-standard alternative to the older SERIAL pseudo-type when generating surrogate key values.

Related: Foreign key, RETURNING clause
Tablespace

A named filesystem location, outside the data directory, where tables and indexes can be stored, letting a database spread its objects across different disks or mount points.

Related: pg_basebackup, B-tree index
System catalog (pg_catalog)

The collection of tables in the pg_catalog schema that describe every object, user, and setting; the server reads them to plan queries and enforce rules.

Related: ANALYZE, Role
B-tree index

The default index type, keeping keys in sorted order so the planner can answer equality and range conditions, and produce ordered output, with a few page reads instead of a full scan.

Related: Partial index, EXPLAIN ANALYZE
Partial index

An index built with a WHERE clause so only rows matching the condition are indexed, which shrinks the index and speeds up writes when queries always filter on that condition.

Related: B-tree index, EXPLAIN ANALYZE
Materialized view

A view whose query result is physically stored and must be refreshed on demand, trading freshness for fast reads of expensive aggregations or joins.

Related: B-tree index
Foreign key

A constraint requiring each value in a column to exist in the referenced table's key, enforcing referential integrity between parent and child rows and controlling which deletes are allowed.

Related: NULL, B-tree index
Transaction (BEGIN/COMMIT)

A unit of work opened with BEGIN and ended with COMMIT or ROLLBACK, in which all statements take effect or none do, and reads see a consistent snapshot.

Related: MVCC (multiversion concurrency control)
CTE (WITH clause)

A named subquery introduced with WITH and referenced in the main statement; it improves readability and, when marked MATERIALIZED, is evaluated once rather than inlined.

Related: Window function
Window function

A function that computes a value over a set of rows related to the current row while still returning one output row per input row, using OVER with PARTITION BY and ORDER BY.

Related: CTE (WITH clause), EXPLAIN ANALYZE
UPSERT (ON CONFLICT)

An INSERT statement with an ON CONFLICT clause that inserts a row or, when a uniqueness conflict occurs, updates the existing row or does nothing instead of failing.

Related: RETURNING clause
RETURNING clause

A clause on INSERT, UPDATE, or DELETE that outputs values from the affected rows, avoiding a follow-up SELECT, for example to read generated key values.

Related: UPSERT (ON CONFLICT), Identity column
pg_basebackup

A client utility that copies a running cluster's data directory and WAL block by block, producing a physical backup used to start a standby or restore a server.

Related: Streaming replication, Point-in-time recovery (PITR)
Point-in-time recovery (PITR)

Recovery that restores a base backup and then replays archived WAL up to a chosen time, LSN, or transaction, so you can stop just before a damaging event.

Related: WAL archiving, pg_basebackup
pg_dump

A client utility that writes a consistent logical backup of one database, as a SQL script or archive file, containing object definitions and data without blocking normal activity.

Related: pgBackRest
WAL archiving

The configuration, through archive_command, that copies each completed WAL segment to a safe location, so recovery can replay changes made after the base backup.

Related: Point-in-time recovery (PITR), WAL (write-ahead log)
pgBackRest

A backup and restore tool often used with EDB Postgres that provides full, differential, and incremental backups, compression, parallel processing, and retention policies.

Related: pg_dump, Point-in-time recovery (PITR)
pg_hba.conf

The client authentication file that lists which hosts, users, and databases may connect and by which method, such as trust, password, or certificate, checked at every new connection.

Related: Role, Row-level security
Role

An account object that can own database objects and hold privileges; group roles can be granted to other roles, and a role with LOGIN privilege acts as a user.

Related: GRANT and REVOKE, pg_hba.conf
GRANT and REVOKE

SQL commands that add or remove privileges, such as SELECT or INSERT on a table, or membership in a role, defining what each role is permitted to do.

Related: Role, Row-level security
Row-level security

A table feature that attaches policies deciding which rows a given role may read or change, adding per-row rules on top of table-level privileges.

Related: GRANT and REVOKE, Role
EXPLAIN ANALYZE

EXPLAIN shows the planner's chosen plan and cost estimates; adding ANALYZE executes the statement and reports actual times and row counts for each plan node.

Related: pg_stat_statements, B-tree index
pg_stat_statements

An extension that records normalized query texts with call counts, total and mean execution times, and rows processed, making it easy to find the costliest statements.

Related: EXPLAIN ANALYZE, pg_stat_activity
Autovacuum

A background process that removes dead row versions left by updates and deletes and refreshes planner statistics, preventing table bloat and transaction ID wraparound.

Related: MVCC (multiversion concurrency control), ANALYZE
ANALYZE

A command that samples a table and updates planner statistics in the system catalog, such as value distribution and correlation, so the optimizer estimates row counts better.

Related: Autovacuum, EXPLAIN ANALYZE
pg_stat_activity

A system view with one row per connection showing user, database, state, current query, and wait event, used to find blocking sessions and long-running statements.

Related: pg_stat_statements
Streaming replication

A setup where a standby continuously receives and applies WAL records from a primary over a replication connection, staying nearly current for read-only queries and failover.

Related: Replication slot, Hot standby
Logical replication

Replication that publishes row-level changes from selected tables and applies them on a subscriber, working across major versions and allowing selective or bidirectional configurations.

Related: Replication slot, Streaming replication
Replication slot

A server-side object that tracks how far a standby or subscriber has consumed WAL, so the sender keeps the required segments instead of recycling them.

Related: Streaming replication, WAL archiving
Hot standby

A standby server that accepts read-only connections while applying WAL from the primary, so it can serve queries and be promoted when the primary fails.

Related: Streaming replication, Failover
Failover

The process of promoting a standby to become the primary after the original fails and repointing clients, often automated by a cluster manager to shorten downtime.

Related: Hot standby, Replication slot