No Picture
PostgreSQL Internals

PostgreSQL Materialised Views: How They Work

Materialized views in PostgreSQL are useful when you have frequently used queries that are complex, slow, or involve large amounts of data. In such cases, creating a materialized view can significantly improve query performance. A […]
No Picture
PostgreSQL Performance

PostgreSQL Process Global Area: Tuning Guide

In PostgreSQL, the process global area (PGA) is managed by the server’s memory allocator and is used to store data structures associated with each client’s session, such as query plans and sorts. To tune the […]
No Picture
PostgreSQL Internals

PostgreSQL COMMIT: What It Does Internally

In PostgreSQL, a COMMIT statement is used to finalize a transaction and make its changes permanent in the database. When a COMMIT statement is executed, the following things happen internally in PostgreSQL: After a transaction […]
No Picture
PostgreSQL Internals

PostgreSQL Latches: How They Are Implemented

PostgreSQL uses latches to provide synchronization between different threads accessing shared resources. Latches are lightweight and efficient mechanisms that provide mutual exclusion between threads. Here is a table describing all the PostgreSQL latches, their purpose, […]