Usage

Testing PostgreSQL Table Bloat with pgbench

Summary: In this article, we will explore how to conduct table bloat testing in PostgreSQL using pgbench.

Continue reading

Impact of Deletes on Query Performance in PostgreSQL

Summary: In this article, we will explore the impact of PostgreSQL DELETE operations on queries and the underlying principles behind this phenomenon.

Continue reading

Comparative Analysis of PostgreSQL Delete Performance

Summary: In this article, we will explore the performance characteristics of PostgreSQL delete operations and the underlying principles behind it.

Continue reading

Comparative Analysis of PostgreSQL Update Performance

Summary: In this article, we will explore the performance characteristics of PostgreSQL update operations and the underlying principles behind it.

Continue reading

Freeze caused by high transaction throughput in PostgreSQL

Summary: In this article, we’ll take a look at the freeze issue that comes with high transaction throughput in PostgreSQL, and corresponding solutions.

Continue reading

Performance Impact of Exception Logic in PostgreSQL Stored Procedures

Summary: Developers often use exception handling in stored procedures, especially when migrating from other databases to PostgreSQL, but the behavior varies greatly between different databases.

Continue reading

VACUUM overhead caused by constraint violations during INSERTs

Summary: In this article, we will examine the VACUUM overhead caused by constraint violations when inserting data into PostgreSQL tables, as well as the corresponding solutions.

Continue reading

High cost and uncertainty of VACUUM in PostgreSQL

Summary: Have you ever encountered a situation in PostgreSQL where multiple autovacuum processes keep running continuously? At this point, most of the resources in the system are used for VACUUM operations. In this article, we will explore the high cost and uncertainty of VACUUM in PostgreSQL, as well as related solutions.

Continue reading

Measuring CPU instructions when querying PostgreSQL

Summary: Michael Stonebraker once published a classic paper titled OLTP Through the Looking Glass, and What We Found There. In it, CPU instruction count was used as a metric to analyze the workload overhead of various database stages.

Continue reading

PostgreSQL: The Preferred Database in the AI Era

Summary: Ultimately, a database is a production tool in the IT industry. Deciding which tool to adopt comes down to production efficiency.

Continue reading