No Picture
PostgreSQL Internals

PostgreSQL Reduce WAL: Increasing Checkpoint Distance

In PostgreSQL, the WAL (Write-Ahead Logging) is a critical component of the database system that ensures durability and consistency of data. However, frequent WAL writes can impact the performance of the database, especially if the […]
No Picture
PostgreSQL Performance

PostgreSQL Slow Query: How to Compute Its Cost

The cost of a slow query in PostgreSQL can be estimated by the Query Planner, which uses statistics about the data in the tables being queried to make predictions about the query execution time. The […]
No Picture
PostgreSQL Performance

PostgreSQL Global Indexes: How They Are Implemented

In PostgreSQL, global indexes are implemented using a shared-nothing architecture, which means that the index data is partitioned and distributed across multiple physical nodes or “shards.” This allows for parallel query processing and improved performance […]
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 […]