Three students in school uniforms work through open books at a classroom table, with textbooks and stationery nearby and study notes on the whiteboard behind them.

What is a Write-Ahead Log? | Database Durability, Transactions, Crash Recovery and Checkpoints

A write-ahead log (WAL) is a durable record of database changes written before the corresponding changes are allowed to reach the main data files. Its purpose is to make transactions recoverable after a power cut, operating-system crash or database restart. The practical rule is simple: record the change reliably first; apply it to the ordinary storage pages afterwards. A database that obeys this ordering can use its log to reconstruct committed work even when a data page was still waiting to be written.

If you run a school registration service, an online shop or a banking ledger, the important question is not merely whether a screen displayed “saved.” It is whether the storage system has enough persistent information to recover the intended result after an abrupt failure. A properly configured WAL provides part of that guarantee. It does not by itself create backups, verify that an entered amount was correct, prevent unauthorised edits or make faulty hardware infallible.

To understand WAL, follow a transaction through five distinct events: the application requests a change, the database prepares log records, the necessary log records become durable, the database may acknowledge commit, and data pages can later be written or rebuilt. Different systems implement these stages differently. PostgreSQL uses WAL for crash recovery and other functions; SQLite has a WAL journaling mode with different reader, writer and checkpoint behaviour. The common idea is ordering, not an identical file format or concurrency model.

Contents

A change log and a data file solve different problems · Transactions: why several edits may need one answer · The sequence from memory to a durable commit · Recovering after a crash: the missing page problem · What a checkpoint means and what it does not mean · SQLite WAL mode: a distinct design worth understanding · PostgreSQL WAL: redo, archiving and replication · The role of log sequence positions · Durability, latency and the cost of a flush · Backups, retention and the danger of unbounded logs · A carefully worked transaction timeline · Misconceptions that commonly lead to mistakes · How to investigate a real WAL performance incident · A changed-condition exercise: two machines and one database · A changed-condition exercise: the promise behind a success message · What this concept helps you understand beyond databases · Practical questions and short answers

A change log and a data file solve different problems

Imagine a notebook kept beside a storeroom. One page lists the current stock; another records each authorised delivery and sale. The stock page tells you what the count is believed to be now. The transaction record tells you what changes were supposed to occur and in which order. If someone damages the current stock page, the detailed transaction history can help rebuild it from a known starting count. A database log is not literally a human-readable notebook: it contains structured records and technical metadata. But this analogy separates current state from a durable sequence of state changes, which is the first conceptual hurdle.

Databases work with pages, commonly fixed-size units of storage that hold pieces of tables or indexes. A transaction might modify a row in one page and an index entry in another. A process can make both modifications in memory before either updated page reaches persistent storage. Writing each modified page separately is costly and exposes a risk: the machine might stop after the first page is written but before the second. Logging supplies a recoverable history of the intended change. It permits the database to coordinate durability without forcing every affected data page to disk at each successful commit.

The word “ahead” refers to the order of persistence, not to predicting a future request. Before a dirty data page containing a change is written in a way that depends on that change, the system must first make the relevant log information durable according to its protocol. Otherwise an interrupted write could leave a page that refers to a transaction the recovery process has never heard of. WAL therefore establishes a relationship between changes and the evidence required to replay them. Once that relationship is clear, concepts such as checkpointing, group commit and recovery become much easier to understand.

Transactions: why several edits may need one answer

A transaction is a unit of database work that should respect the database’s transactional guarantees. Consider a fictional school event system in which a registration reduces the number of remaining seats and adds the pupil to an attendance list. If only one operation survives, the system may overbook or display a booking that does not exist. Atomicity means the transaction’s changes are treated as a unit: they do not become a half-committed logical operation. Durability means that once a transaction is acknowledged as committed under the configured guarantee, the system is intended to retain it despite specified failures.

These properties involve more than keeping an append-only file. Transactions also need rules about concurrency, isolation, constraints and which log records count as committed. A log may describe changes generated by a transaction that ultimately aborts. Recovery must not blindly treat every recorded change as valid user-visible state. Implementations may use redo records, undo information, version structures, commit markers or combinations of these approaches. The order in which WAL is flushed and a commit is acknowledged matters enormously; the existence of a log file without a functioning protocol does not create reliable transactions.

It is also useful to distinguish a database transaction from a business event. A completed payment can involve a bank, gateway, merchant system and notification service. One local database WAL cannot make that whole distributed chain atomic. If the database commits an order but the email service fails, the WAL is doing its assigned job; the application still needs an outbox, retry scheme or other coordination strategy. Treat the log as a building block in reliability engineering, not as a promise that every external consequence of an action will occur exactly once.

The sequence from memory to a durable commit

A database frequently changes cached pages in memory, because modifying memory is much faster than writing durable storage for each tiny update. While those pages are dirty, their persistent copies may still show older values. The engine constructs WAL records describing changes relevant to recovery, appends them to its logging machinery and orders them with respect to data-page writes. A transaction’s commit point is tied to the database’s own durability rules. In PostgreSQL’s ordinary durable configuration, flushing the required WAL before acknowledging commit allows the engine to redo changes that were not yet reflected in the on-disk pages.

The sequence is sometimes simplified to “write log, then write database,” but that shorthand hides important subtleties. Log records can be buffered. One physical log flush may cover several transactions. Data pages can be flushed in the background. Some implementations write full-page images in specific circumstances, because a torn page cannot always be repaired from a narrow row-level delta. Different database versions may change the structure and timing of these steps. Learn the invariant—the records needed to recover a page change must be made durable before a data-page write that depends on them—rather than memorising one imagined order of every internal instruction.

A successful network response from the database is meaningful only in the context of its settings and storage assumptions. PostgreSQL exposes settings such as synchronous_commit and fsync that affect when a commit is considered durable and how much loss is possible under different failures. Turning a durability mechanism off may improve measured throughput while weakening the promise made to users. It is a deliberate trade-off, not a magic free-speed switch. An application that stores exam results should decide how much acknowledged work it could tolerate losing before administrators alter these settings.

Recovering after a crash: the missing page problem

Take a simplified ledger starting with 100 points, with one committed transaction adding 20 points. The application displays 120. Suppose its updated data page remains only in memory while the WAL records the committed change on persistent storage. The machine loses power. When it restarts, the old data page may still show 100, but the recovery process can find the durable record and restore the change so that the database’s logical state becomes 120. This is the reason WAL is useful: it reduces dependence on whether all dirty data pages happened to be written before the interruption.

Now change one condition: the transaction prepared records but did not reach a durable commit point before the crash. The recovery process must follow the engine’s rules for that incomplete transaction. It cannot infer commitment merely because some bytes of its change appear in a log or on a page. That is why reading a WAL file without understanding its transaction markers and record structure can be misleading. A raw log is evidence for the database’s recovery algorithm, not a free-standing authoritative list of successful customer operations.

A third case concerns a partially written data page. A power failure can interrupt writing the physical bytes of a page, leaving a mixture of old and new material. PostgreSQL documents full-page writes after checkpoints as one measure against this problem: a complete image recorded in WAL can help repair a damaged page during redo. This shows why “the log stores only the small change” is not always correct. Durability design must address page integrity, operating-system buffering and hardware behaviour, not only application-level statements such as INSERT or UPDATE.

What a checkpoint means and what it does not mean

A checkpoint is a recovery and storage-management milestone that coordinates the relationship between the log and the database’s main files. A common misunderstanding is that the log instantly disappears when a checkpoint begins. Instead, an engine must ensure that enough state has reached durable storage and that any log segments still needed for recovery, backup or replication remain available. Checkpoints help bound the amount of work required during startup recovery. Their scheduling can affect write pressure, performance, disk use and recovery time.

Consider a hypothetical system generating 4 MiB of WAL per second for 300 seconds, with that rate sustained. The gross generated volume is 4 × 300 = 1,200 MiB, or about 1.17 GiB using 1 GiB = 1,024 MiB. This arithmetic measures log generation only; it is not the database’s actual disk requirement. Compression, recycling, retention for replicas, archive status, checkpoint completion, burstiness and full-page records all affect storage needs. If the rate doubles to 8 MiB/s, the same 300-second interval produces 2,400 MiB, about 2.34 GiB. The change is linear because the assumed interval is fixed.

An operator should not automatically solve high WAL volume by forcing checkpoints every few seconds. More frequent checkpoints may increase background writes and, in PostgreSQL, can influence how often new full-page images are logged after checkpoints. In SQLite’s WAL mode, a checkpoint has the more concrete task of moving eligible WAL frames into the main database file; long-lived readers can prevent a checkpoint from completing. The right policy therefore depends on engine behaviour, workload, storage reliability and how much recovery time is acceptable. A checkpoint is a managed trade-off rather than a universal button labelled “make everything safe.”

SQLite WAL mode: a distinct design worth understanding

SQLite makes WAL especially tangible. In its WAL journaling mode, changes are appended to a WAL file, while readers can use a consistent snapshot by referring to an end mark in the log. A reader sees the pages appropriate to its snapshot and ignores later frames added by writers. The database’s documentation explains why this allows readers and a writer to overlap more often than a rollback-journal arrangement. It also states an important constraint: there can be only one WAL writer at a time in the ordinary design. WAL is not equivalent to unrestricted parallel writing.

SQLite also maintains a wal-index, usually in shared memory, to help readers locate the relevant versions of pages efficiently. This is part of the reason its documented standard WAL implementation requires all connections using the database to be on the same machine; it is not intended for a conventional network filesystem shared between independent computers. Someone setting up a school attendance application should not assume a SQLite database becomes a distributed multi-writer database merely by enabling WAL mode. For multiple machines and heavy concurrency, the architecture may need a server database or a different coordination layer.

Checkpointing in SQLite transfers eligible frames from the WAL back into the main database. A reader that started earlier may still need an older snapshot, so the checkpoint must respect its end mark. The official SQLite documentation explains that a long-running reader can prevent the checkpoint from progressing fully; this is called checkpoint starvation when it becomes persistent. Merely increasing WAL disk space can mask the symptom temporarily. The application must examine transaction lifetimes, reader behaviour and checkpoint strategy. The practical transfer lesson is that concurrency advantages can introduce a different resource-management problem if read transactions remain open indefinitely.

PostgreSQL WAL: redo, archiving and replication

PostgreSQL’s documentation describes WAL as a standard approach to transaction logging and crash recovery. The engine does not have to force every table and index page to disk on each commit if the needed WAL is flushed first. On startup after a crash, records can be replayed from a checkpoint to reconstruct page changes that were not yet present in the data files. This recovery process is different from restoring an application backup. It is a designed response to specified unclean shutdown conditions using local persistent history.

WAL is also important to PostgreSQL’s physical replication, archiving and point-in-time recovery capabilities. A base backup and a suitable sequence of archived WAL records can allow restoration to a time within the recoverable archive, subject to the database’s exact requirements. But a WAL segment by itself is not a full backup, and a set of WAL files that starts too late cannot reconstruct the missing initial state. A school keeping years of assessment records should implement verified backups, recovery tests and access controls instead of relying on the log as its only contingency plan.

This also clarifies the difference between a replica and a backup. A replica receives changes, including accidental deletions, according to its replication configuration. A backup is an independently recoverable historical copy taken and retained under an explicit policy. WAL can support both workflows, but it is not a guarantee that an operator will be able to reverse any mistake tomorrow. The retention window, consistency of archive segments, existence of a valid base backup and practice of restore drills determine what can actually be recovered.

The role of log sequence positions

A log naturally has an order: some records come before others. PostgreSQL uses log sequence numbers to identify positions within WAL. These positions help coordinate what has been generated, written, flushed, replayed or retained, depending on the component being examined. For learning purposes, imagine three changes tagged with increasing positions A, B and C. If the database has durably flushed through C, the state of recovery knowledge differs from a system where only A is durable. You do not need to memorise hexadecimal notation to understand that a durable boundary matters.

A misleading diagnostic would be “the replica received some WAL, so it must be current.” Receiving bytes, writing them to storage, flushing them and applying them to visible database state are not the same milestone. A replication monitor should distinguish the meaningful offsets and delays supported by its engine. If an application sends students toward a read-only replica, the data they see may lag a recently committed change on the primary. WAL shipping and replication make recovery and scaling possible, but they do not eliminate lag or every possible divergence.

Consider a conceptual throughput calculation: if one system generates 6 MiB/s of log and a downstream consumer can durably process only 5 MiB/s for ten minutes, the backlog increases at 1 MiB/s × 600 s = 600 MiB, assuming constant rates and no starting backlog. This is an illustrative queue calculation, not a measurement of PostgreSQL on a particular machine. If the consumer later processes 8 MiB/s while generation stays at 6 MiB/s, the net drain is 2 MiB/s; in the simplified scenario that 600 MiB would take 300 seconds to clear. Real lag is affected by networks, bursts, record formats and checkpoint behaviour.

Durability, latency and the cost of a flush

A flush operation attempts to ensure relevant data crosses the boundary from volatile buffers to storage with the required persistence guarantee. A database may amortise that cost by grouping work from several transactions into one flush. Suppose a thought experiment in which each independent, strictly serialised commit requires a 2-millisecond durable flush and there is no other work. At most 1 / 0.002 = 500 such serial flushes fit into one second. That figure is not an actual database throughput benchmark: real engines can batch commits, pipelines can overlap work, storage devices differ and application processing has costs of its own.

Now suppose five transactions share a group commit flush of the same assumed 2 milliseconds, again ignoring all other overhead. That single flush can cover five commits rather than one, suggesting why batching can improve throughput per flush operation. It does not mean those transactions all experience exactly two milliseconds of application latency, because some must wait to join the batch and other work occurs. The point is qualitative and operational: WAL’s sequential writes and commit grouping can reduce expensive random or synchronised I/O. Performance still depends on hardware and load.

Turning off synchronous durability changes the risk rather than repealing physical limits. A transaction might be acknowledged before the relevant log data is guaranteed durable; a crash could then lose recently acknowledged updates. For a disposable cache this may be acceptable. For fee payments or student grades it may not be. Capacity planning should therefore state a recovery point objective—the amount of data loss the organisation can tolerate—and recovery time objective before selecting settings. Faster response times are not the only measure of a reliable database service.

Backups, retention and the danger of unbounded logs

Log retention is a consequence of several obligations, not just the interval since the last checkpoint. PostgreSQL WAL may need to remain available for replication consumers, archive processes or recovery slots. If a consumer stops advancing, storage usage can continue increasing even though ordinary traffic looks healthy. An operator must distinguish live generation, segments awaiting archiving, segments required by replicas and material that can safely be recycled. Deleting files by hand to recover disk space risks breaking the database’s ability to recover or feed replicas.

An illustrative example makes the planning problem concrete. Assume 10 GiB of WAL is generated each day and an offline consumer requires three complete days of history. A raw three-day generation estimate is 30 GiB before allowing for segment granularity, backups, variability and safety margins. If a promotion doubles WAL output for one day, the underlying assumption is already invalid. The correct response is to monitor actual rates and retention conditions, establish alerts and test how the system behaves when the archive destination or replica fails. Manually purging required WAL is not responsible housekeeping.

SQLite users face different but related questions. A long-lasting read transaction may keep the WAL growing because a checkpoint cannot safely copy the newest frames into the main file while preserving that reader’s snapshot. Closing abandoned cursors and completing transactions promptly can be more effective than periodically restarting the application. Always diagnose the engine-specific reason for growth; a simple graph of file size does not tell you whether the cause is an expected batch load, replication backlog, checkpoint starvation or storage failure.

A carefully worked transaction timeline

Use a fictional database with a class seat count of 12 and a student record named Aisha. At event one, transaction T1 begins and calculates a new seat count of 11. At event two, it appends the relevant changes to WAL. At event three, its commit record is flushed under the database’s ordinary durable-commit rules. At event four, the application receives a success response. At event five, the computer crashes before the modified table pages are written. Recovery should be able to reproduce the committed booking from the durable log. Every quantity here is part of a teaching example rather than a report from an operating service.

Move the crash earlier, between events two and three. The application has not yet received a durable success acknowledgement. The transaction’s fate now depends on whether the actual commit record was durable and how the engine processes the partially completed work. A well-designed client should treat an interrupted request as an uncertain outcome, not immediately repeat a payment or registration without checking. For an idempotent booking API, a unique request identifier can let the application query whether a previous attempt committed. WAL supplies local recovery facts; the application supplies business-level duplicate control.

Move the crash later, after the data pages were safely written and the checkpoint conditions were satisfied. The system may recover with less WAL replay, although it still verifies and processes recovery according to its engine’s design. This comparison shows that the quantity of dirty pages at the instant of failure affects recovery work, not the logical definition of commitment. If an operations team observes long recovery times, it should inspect checkpoint and write behaviour rather than equating the problem with every user transaction being lost.

Misconceptions that commonly lead to mistakes

A WAL is not the same thing as an ordinary text activity log. A server log may say that a user logged in or that an API request failed; a database WAL records changes for the storage engine’s transactional machinery. The database log can be binary and difficult to interpret outside specialised tools. Reading the visible text of a transaction statement from application logs cannot tell you exactly which data-page changes were durable at a crash. Keep operational logs, audit trails and WAL separate in your mental model, even when all three are valuable for an investigation.

A WAL is not a promise of protection against intentional deletion. If a privileged application submits a valid transaction deleting a class list, the database may faithfully record and replay that deletion. Point-in-time recovery from properly retained backups might help, but those recovery assets need their own security and lifecycle controls. Likewise, logging does not solve confidentiality: sensitive data can appear in storage-related artifacts and requires access controls, encryption decisions and secure disposal policies consistent with the engine and deployment. The same reliability mechanism that retains changes can create responsibilities to protect retained information.

A WAL is not always an infinite chronological history of every past row value. Segments can be recycled after they are no longer needed, and records need not be convenient for reconstructing arbitrary application objects without accompanying data. The term “write-ahead log” also does not imply that every database has exactly the same rollback, redo, crash or replica design. Treat official documentation for the actual engine and version as primary authority. An explanation that is accurate for SQLite’s single-writer WAL mode can mislead badly when applied as a detailed claim about PostgreSQL concurrency.

How to investigate a real WAL performance incident

Start with symptoms rather than guessed causes. Is a database returning slow commits, is storage filling unexpectedly, did a replica fall behind, or is crash recovery taking too long? Record the time window and compare transaction rates, WAL generation rate, storage utilisation, flush latency, checkpoint activity and relevant replica or archive status. These signals refer to different mechanisms. A database might be slow because the log flush is expensive, but it could also be waiting on locks or queries unrelated to logging. Avoid treating one graph as a complete diagnosis.

Next establish an observable baseline. For example, compare log generation before and after a bulk data import, but keep the intervals and measurement units consistent. If the reported rate changes from 2 MiB/s to 7 MiB/s, the increase is 5 MiB/s, or 250% of the baseline, while the new rate is 350% of the original. Distinguish percent increase from percent of baseline. Ask whether a batch job explains the rise and whether the storage budget can tolerate its duration. Changing settings without this arithmetic can turn an ordinary burst into an unnecessary incident.

Then match actions to the diagnosed mechanism. When readers prevent SQLite checkpoints, address transaction lifetime. When a PostgreSQL replication consumer is stalled, investigate its replay and retention state. When log flush latency dominates, examine storage behaviour and workload patterns. When a crash caused page corruption, investigate durability and integrity settings plus underlying storage, not simply add disk capacity. If the issue affects production, test changes in a representative staging setup first, document rollback procedures and respect the organisation’s tolerance for acknowledged-data loss.

A changed-condition exercise: two machines and one database

Imagine a developer builds an offline reading tracker on a single laptop using SQLite WAL mode. The laptop’s local processes can use SQLite’s documented concurrency facilities within the same machine. Now the developer moves the same database file to a shared network drive so two computers can read and update it directly. This is not merely a change of location. SQLite’s ordinary WAL design uses a shared-memory wal-index, and its official documentation warns against using WAL in that way on a network filesystem. The intended architecture must be reconsidered before use, even if a small informal test appears to work.

A sound redesign might keep SQLite and run one application service on the host that owns the database, with other devices communicating through that service. Alternatively, a purpose-built server database such as PostgreSQL can own the shared data and handle client connections. Which choice is best depends on deployment, availability, security and maintenance skills. The reasoning comes from the violated assumption: one-file local access is not the same as a coordinated multi-computer database service. The answer is not to give the database file a more convenient shared folder name.

Consider a second change. Suppose a read-only report starts and holds a SQLite snapshot open for hours while writes continue. WAL growth becomes unexpectedly large. Asking only whether the report modified data misses the mechanism: even a reader can influence checkpoint progress because it needs its original snapshot. Close or break up long-running reads when appropriate, review checkpoint operation and measure file growth again. This exercise transfers WAL knowledge from a storage rule to a useful performance diagnosis.

A changed-condition exercise: the promise behind a success message

A learning platform changes its policy from “no more than one minute of grade updates may be lost” to “a successfully confirmed exam score must survive a local power failure.” That is not simply a request for faster backups. The requirement has become stricter about acknowledged transactions. The team should inspect the database’s configured commit durability, the actual persistent-storage guarantees, how client acknowledgements are issued, and whether replicas or backups meet broader availability needs. WAL can support the requirement only when the associated flush and storage assumptions are satisfied.

Now suppose an administrator proposes turning off synchronous_commit in PostgreSQL because a benchmark showed lower latency. The team must identify the failure mode that setting permits before deciding. The documentation describes the possibility of losing some transactions that were reported committed if a crash happens before their WAL is durably flushed, even though database consistency can be preserved. If the new school policy rules out that category of loss, the optimisation is incompatible with the requirement. No performance graph alone can overrule the durability contract.

In contrast, consider disposable aggregated page-view counts regenerated from a durable event stream. The business may accept a small recent loss, provided it is clearly documented and doesn’t corrupt a source of truth. The same database setting has different consequences because the importance of the data differs. Good engineering is not “enable every expensive guarantee everywhere” or “disable every safe setting for speed.” It is mapping the persistence promises of each workload to tested system behaviour.

What this concept helps you understand beyond databases

WAL introduces the broader idea of preserving enough evidence to recover state transitions after interruptions. File systems, message-processing systems and distributed coordination tools also use journals, append-only logs or ordered state records, but their guarantees are not identical. Recognise the structural question rather than assuming a shared acronym: which action was accepted, which evidence was durably recorded, and what recovery algorithm will reconstruct a safe state? This reasoning is useful in engineering design reviews and when troubleshooting seemingly inconsistent results after restarts.

It also sharpens the distinction between reliability and observability. A system may be perfectly durable yet poorly monitored, causing administrators to miss growing WAL files. Conversely, an application may produce hundreds of colourful dashboards while its commit acknowledgements arrive before persistence is guaranteed. Both dimensions matter, but evidence of one is not evidence of the other. The eduKateSingapore explanation of error budgets shows how an operational service can quantify allowable failures; WAL explains one storage mechanism that might contribute to meeting such reliability objectives.

Finally, WAL is a reminder that ordering changes meaning. The identical set of operations can lead to recoverable or unrecoverable states depending on which persistence event happened first. This principle generalises to placing the correct evidence before a commitment, verifying a calculation before announcing a result, and planning recovery before the failure occurs. The separate article on data diodes describes a different security mechanism; linking the two helps avoid confusing data-transfer direction with transaction durability.

Practical questions and short answers

What is the shortest accurate definition of a write-ahead log? It is persistent transaction-recovery information recorded before the associated changes to ordinary database files are allowed to depend on those changes. The important word is “before.” The exact record structure and commit procedure depend on the database engine. One should not assume a product’s WAL file is readable like a normal text log, nor that enabling a logging switch repairs an otherwise unsafe application.

Does a database with WAL still need backups? Yes. Local WAL can help recover from specified crashes, but it cannot replace independent backup copies, retention policies, off-site protection or restore testing. Malware, accidental deletion, physical destruction of storage and an invalid recovery chain can defeat a system that appeared healthy during ordinary use. Backup and recovery objectives should reflect the actual importance of the stored information.

Will WAL always make queries faster? No. WAL can reduce some write costs and, for SQLite, change the way readers and writers coexist. It can also produce checkpoint work, disk pressure and added write amplification. Reads still depend on indexes, query plans, contention and hardware. A claim about universal acceleration would conflate storage recovery with all aspects of database performance. Measure the workload before and after any change.

Is the log the same as replication? No. WAL can be used as a source for replication, but a log exists to support transactional storage recovery even without a standby machine. Replication requires additional communication, replay, failure handling and lag monitoring. A standby may repeat a mistaken deletion as faithfully as a valid update. Neither mechanism substitutes automatically for historical backups.

Can I delete a large WAL file to free space? Do not do so by hand on an operational database. The database may need the file for crash recovery, snapshots, checkpoints, archival or replica continuity. Use the official diagnostics and maintenance procedures for the specific engine. Investigate why retention exists before removing any data. A disk-space emergency should be handled as an incident, not as an excuse to bypass consistency safeguards.

Why might a reader cause a SQLite WAL file to grow? A reader can hold a snapshot that prevents the checkpoint from moving beyond the frames needed by that snapshot. Continued writes add frames meanwhile. The writer is not necessarily malfunctioning. Shorter read transactions, proper cursor closure and appropriate checkpoint management are more relevant remedies than restarting indiscriminately.

Does a durable transaction guarantee the user saw the correct answer? No. Durability means the stored result survives the specified failure, not that the calculation or entered value was correct. A wrong grade or duplicate charge can be durably recorded. Business validations, idempotency controls, authorisation, testing and review remain essential. A dependable system must protect correctness at several different layers.

What should a student remember for an exam or technical interview? Explain the invariant, illustrate a crash before a dirty page is written, distinguish committed from incomplete work and name the roles of redo and checkpointing. Then show why a log is not a substitute for backups. If discussing a real product, consult that product’s own documentation before asserting detailed concurrency or durability settings.

Primary references and verification date

Source trail checked on 28 October 2026. The numerical figures in this article are explicitly hypothetical teaching calculations, not observed performance measurements. Refer to the engine version in use when making production decisions.

PostgreSQL Global Development Group, PostgreSQL 18: Write-Ahead Logging (WAL), current documentation, accessed 28 October 2026

PostgreSQL Global Development Group, PostgreSQL 18: Write Ahead Log configuration, accessed 28 October 2026

SQLite project, Write-Ahead Logging, technical documentation, accessed 28 October 2026

Explore the connected learning guides

Choose the question that brought you here. Open one useful guide, try a small task, and stop when you have what you need.

Take one question further

The same learning habit can travel across subjects, while each subject keeps its own methods. These routes help you notice a difficulty, understand one part of it, and return to something you can do.

A word is familiar, but using it is difficult.

Move from recognising a word to retrieving it in a new context. Understand vocabulary plateaus.

Try it without the guide: Choose one word you already know. Close the guide and use it in a new sentence. Explain why it fits; try another context tomorrow.

A piece of writing has ideas, but the reader loses the thread.

Make the order of events and the links between sentences clear. Explore composition writing.

Try it without the guide: Choose one short paragraph. Read the relevant explanation, close it, and revise the paragraph. Ask someone to tell you what happened and why.

The Mathematics seems familiar, but marks still disappear.

Find the first point where the working stops being reliable. Find Secondary 4 A-Math mark leakage.

Try it without the guide: For a Secondary 4 A-Math question you have attempted, locate the first uncertain line. Repair that step, then try a comparable question without the worked answer.

A Science fact is remembered, but the explanation is incomplete.

Connect the evidence to a scientific idea and the resulting change. Follow the Primary Science learning route.

Try it without the guide: Choose a familiar Primary Science example. Explain the evidence, the idea and the result without notes. Then change one condition and explain your prediction.

Two accounts of the world seem to disagree.

Check the question, source, date and evidence before combining claims. Explore the World Knowledge research library.

Try it without the guide: Take one claim. Find the source best placed to support it, note its date, and state what remains uncertain. Return to your original question.

There is plenty of help, but independence is hard to see.

Check what the learner can understand and do after support is removed. Understand how education works.

Try it without the guide: Choose one small task the child has practised. Agree on a calm, brief attempt without prompts. Use what happens to choose one next step, then stop.

For the structure behind these connections, read the eduKateSingapore runtime manifest and the eduKate ecosystem boot contract. The reader map describes public navigation; those manifests preserve the wider ownership and return rules.