No Picture
PostgreSQL Performance

PostgreSQL Default Values: Avoiding Deadly Pitfalls

While default values in PostgreSQL can be convenient and provide initial values for columns, certain default values can have a detrimental impact on PostgreSQL performance. Here are some examples of potentially deadly default values and […]
No Picture
PostgreSQL Internals

PostgreSQL Hints and Costs Explained

Understanding Hints and Costs in PostgreSQL Query Optimization Firstly, hints and costs are two important concepts in PostgreSQL query optimization. They help improve query performance by giving the optimizer additional information about how to execute […]
No Picture
PostgreSQL DBA

PostgreSQL Median Absolute Deviation: Finding Outliers

In PostgreSQL, you can actively use the Median Absolute Deviation (MAD) to identify outliers in a dataset. Since MAD is a robust statistic, it measures variability more effectively than traditional metrics. Moreover, it remains less […]
No Picture
PostgreSQL Internals

PostgreSQL Index Wildcard Explained

Index wildcard is a technique used in PostgreSQL to create an index on a partial string in a column, rather than indexing the entire column. This technique can improve query performance when searching for data […]
No Picture
PostgreSQL Performance

Troubleshooting PostgreSQL Query Performance

Monitoring query latency, wait events, and locks in PostgreSQL helps identify and diagnose performance bottlenecks. Here’s a guide on how to monitor these aspects: Here’s a sample query to gather information about locks, wait events, […]