No Picture
MinervaDB

How are Global Indexes implemented in PostgreSQL?

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
MinervaDB

Tuning Process Global Area in PostgreSQL

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
MinervaDB

What does a COMMIT do internally to PostgreSQL?

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
MinervaDB

How Latches are implemented in PostgreSQL?

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, […]

No Picture
MinervaDB

How to implement parallel queries in PostgreSQL 15?

PostgreSQL 15 introduces a new parallel query feature called “Partitionwise Joins” which can improve the performance of queries involving large tables. Here’s how to implement parallel queries using this feature: Here’s an example query that […]