Archived Blog

PostgreSQL vs. MySQL: Read Paths and the Linux Page Cache

PostgreSQL and MySQL take different paths when performing physical reads. PostgreSQL loads data pages from storage into the OS page cache, while MySQL’s InnoDB bypasses it by default. This post compares the two read paths through experiments, explains the design trade-offs, and shows how those differences inform the sizing of PostgreSQL’s shared buffers and MySQL’s…

The Cost of Maintaining GIN and RUM Indexes in PostgreSQL

GIN and RUM indexes make searches faster, but maintaining them comes at a cost. This post explores write amplification and how PostgreSQL maintains the two index types differently. This is the third and final post in a three-part series on PostgreSQL inverted indexes: Three Typical GIN Index Use Cases in PostgreSQL How RUM Overcomes GIN’s…

How RUM Overcomes GIN’s Limitations in PostgreSQL Full-Text Search

GIN indexes are powerful tools for searching within composite values in PostgreSQL, but they have limitations in real-world applications. RUM builds on GIN’s inverted-index design to overcome some of these limitations, particularly in full-text search. This post compares GIN and RUM through practical experiments to help you decide which is better suited to your workload.…

Three Typical GIN Index Use Cases in PostgreSQL

GIN indexes enable PostgreSQL to search values inside composite items, including words in full-text documents, elements in arrays, and keys and values in JSONB. This post shows how GIN indexes speed up these searches. This is the first post in a three-part series on PostgreSQL inverted indexes: Three Typical GIN Index Use Cases in PostgreSQL…

If You Install Only One PostgreSQL Extension, Choose pg_stat_statements

For general query performance troubleshooting, pg_stat_statements is often the most useful first extension to install. It tracks planning and execution statistics for SQL statements across a database server, groups similar statements, and exposes metrics such as call counts and execution time through the pg_stat_statements view. This helps identify queries that consume the most time or…

Troubleshooting PostgreSQL Server Startup Failures

When working with PostgreSQL, one of the first problems we may encounter is a PostgreSQL server that fails to start. This article explains how to diagnose PostgreSQL startup failures by identifying the systemd service, finding its startup command and data directory, and running the same command in the foreground to expose the startup error. 1.…

Why Can’t You Connect to PostgreSQL?

By default, a newly installed PostgreSQL server accepts connections only from the local machine. To allow a remote client to connect, configure both the network listener and host-based authentication: Configure PostgreSQL to listen for remote connections. Add a pg_hba.conf rule that permits the remote client to authenticate. Configure PostgreSQL to Listen for Remote Connections In this example,…

Understanding MySQL LTS and Innovation Releases

Choosing a MySQL version is no longer a simple matter of installing the latest release. MySQL now offers two distinct paths: the stability and predictable maintenance of Long-Term Support (LTS), or rapid access to new capabilities through Innovation releases. This article explains how the two tracks differ, how their version numbers evolve, and how to…

Installing MySQL 26.7 on Red Hat Enterprise Linux 9

This hands-on installation installs MySQL Community Server from the RPM bundle, configures a custom data directory, preserves SELinux protection, initializes the server, and explains how to set the initial administrative password.

Something went wrong. Please refresh the page and/or try again.


Follow My Blog

Get new content delivered directly to your inbox.

I’m Yuan

Welcome to the blog of a database performance maven. Feel free to contact me to share and discuss database knowledge.

My Oracle Book

My 26 Oracle Certifications

A screenshot from certview.oracle.com

My MySQL Book

MySQL 8.0 Operations and Optimization

Let’s connect