Home  Postgress   What is aci ...

What is ACID in databases

ACID is an acronym for Atomicity, Consistency, Isolation, and Durability—a set of properties that guarantee database transactions are processed reliably, even in the event of errors, crashes, or concurrent access.

Here is a breakdown of how PostgreSQL implements each property:


Atomicity

Definition: Ensures that a transaction is treated as a single, indivisible unit: either all of its operations succeed, or the entire transaction is rolled back (the "all-or-nothing" rule).

PostgreSQL Implementation:


Consistency

Definition: Guarantees that a transaction brings the database from one valid state to another. This means all changes must adhere to predefined rules and constraints.

PostgreSQL Implementation:


Isolation

Definition: Ensures that concurrent transactions do not interfere with each other. Each transaction operates as if it were the only one running, preventing concurrent issues like dirty reads.

PostgreSQL Implementation:


Durability

Definition: Guarantees that once a transaction has been committed, its changes are permanent and survive any subsequent system failure (e.g., power loss or crash).

PostgreSQL Implementation:

Published on: Sep 30, 2025, 08:33 AM  
 

Comments

Add your comment