[KongchangAI]
ConceptWrite-Ahead Logging

WAL

Write-Ahead Logging, a mechanism used in database systems to guarantee transaction atomicity and durability by recording log entries to persistent storage before data is written.

Core Facts

Timeline (last 90 days)

Oct 28

Every Postgres update must go through the WAL flush to disk and acquire a row lock, and the old row is not deleted immediately but left for the vacuum process to clean up.

Unverified50%
Oct 20

Qdrant v1.19.2 jointly implemented persistent state management for proxy segments via PR #10349, #10445, #10661, and #10700, allowing the WAL to safely truncate old segments.

Unverified50%
Oct 20

In older versions of Qdrant, proxy segments did not persist intermediate state, so the WAL could not be truncated, and recovery time on node restart degraded from seconds to tens of minutes.

Unverified50%
Oct 19

Slot lag is a typical operational problem in PostgreSQL logical replication: a logical replication slot retains WAL logs on the primary until the subscriber confirms consumption, and lagging or disconnected subscribers cause WAL to keep accumulating on the primary, bloating the disk and even filling up the primary.

Unverified50%
Oct 17

The 1983 disk checkpoint scheme shares the same origin as this article's WAL state scheme: replacing wholehearted trust in mutable state with a small number of ordered, append-only records.

Unverified50%
Oct 17

During recovery one should read the tail rather than the full text, because everything needed to run is in the state files and the last WAL line.

Unverified50%
Oct 14

Common technical implementations of an append-only ledger include blockchain underlying data structures, WAL (Write-Ahead Log), and event sourcing (Event Sourcing).

Unverified50%
Oct 13

The concept of durable execution was first popularized by workflow engines such as Temporal and Cadence, and its theoretical roots can be traced back to database transaction logs and WAL (Write-Ahead Logging).

Unverified50%
Oct 8

WAL (Write-Ahead Log) is the core mechanism by which Postgres guarantees crash recovery and primary-replica replication; every data change must be written to the WAL before being flushed to disk, making it a significant source of I/O amplification during large bulk writes.

Unverified50%
Oct 8

Temporarily disabling WAL synchronization during imports (e.g., by using UNLOGGED TABLEs or wal_level=minimal) can trade higher throughput for a loss of data durability guarantees.

Unverified50%

14 more timeline events

All Facts (20)

Verified

The principle of WAL (Write-Ahead Logging) is that all modification operations must be sequentially appended to the WAL log file before being written to the actual data file, used to achieve transaction durability and crash recovery.

65%
Verified

Notable implementations of append-only logs include Apache Kafka's commit log and database write-ahead logs (WAL).

65%
Unverified

WAL (Write-Ahead Logging) ensures that even if the system crashes, a consistent state can be recovered from the log.

70%
Unverified

Every Postgres update must go through the WAL flush to disk and acquire a row lock, and the old row is not deleted immediately but left for the vacuum process to clean up.

50%
Unverified

In older versions of Qdrant, proxy segments did not persist intermediate state, so the WAL could not be truncated, and recovery time on node restart degraded from seconds to tens of minutes.

50%
Unverified

Slot lag is a typical operational problem in PostgreSQL logical replication: a logical replication slot retains WAL logs on the primary until the subscriber confirms consumption, and lagging or disconnected subscribers cause WAL to keep accumulating on the primary, bloating the disk and even filling up the primary.

50%
Unverified

During recovery one should read the tail rather than the full text, because everything needed to run is in the state files and the last WAL line.

50%
Unverified

The 1983 disk checkpoint scheme shares the same origin as this article's WAL state scheme: replacing wholehearted trust in mutable state with a small number of ordered, append-only records.

50%
Unverified

Common technical implementations of an append-only ledger include blockchain underlying data structures, WAL (Write-Ahead Log), and event sourcing (Event Sourcing).

50%
Unverified

The concept of durable execution was first popularized by workflow engines such as Temporal and Cadence, and its theoretical roots can be traced back to database transaction logs and WAL (Write-Ahead Logging).

50%
Unverified

Temporarily disabling WAL synchronization during imports (e.g., by using UNLOGGED TABLEs or wal_level=minimal) can trade higher throughput for a loss of data durability guarantees.

50%
Unverified

Postgres's native COPY command can deliver several times to tens of times the speed of row-by-row INSERT, but is still constrained by bottlenecks such as single-process execution, row-format parsing, and full WAL writes.

50%
Unverified

WAL (Write-Ahead Log) is the core mechanism by which Postgres guarantees crash recovery and primary-replica replication; every data change must be written to the WAL before being flushed to disk, making it a significant source of I/O amplification during large bulk writes.

50%
Unverified

Every time SQLite commits a transaction, it needs to flush the WAL to disk to ensure durability, which involves the fsync system call and can take several milliseconds on mechanical hard drives.

50%
Unverified

PostgreSQL internally contains multiple highly coupled subsystems, including a query parser, planner/optimizer, executor, storage manager (including MVCC multi-version concurrency control), and WAL write-ahead logging.

50%
Unverified

Traditional Postgres PITR relies on a base full backup plus WAL archiving, requiring restoration of the full backup followed by serial replay of all WAL logs during recovery.

50%
Unverified

PostgreSQL supports backup via pg_basebackup combined with WAL archiving.

50%
Unverified

The underlying principle of PITR relies on Postgres's Write-Ahead Log (WAL), where all data changes are sequentially appended to the WAL before being written to the data files.

50%
Unverified

WAL files are often easier to interpret than main data files because they record every change operation sequentially in append-write order.

50%
Unverified

SQLite's WAL mode supports concurrent reads and writes without mutual blocking by first recording write operations to a separate log file.

50%

Source Articles