The Lost Feed

🌐Old Internet

PostgreSQL 15: The Stats Collector Mystery & Big Changes

PostgreSQL 15 arrived with a puzzle: Where did the stats collector go? Discover the truth behind this change and other major updates.

6 views·6 min read·Jul 18, 2026
PostgreSQL 15: Stats Collector Gone? What’s New?

Database updates often bring a mix of excitement and worry. For many who rely on PostgreSQL, the release of version 15 sparked a particular question. It seemed like a core piece of their monitoring toolkit, the stats collector, had vanished.

This change caused a stir, leaving some wondering how they would keep an eye on their database's health. But like many good stories, the truth behind this "disappearance" is more interesting than it first appears. Let's uncover what really happened.

The Strange

Story of the Stats Collector's "Disappearance"

For a long time, the PostgreSQL stats collector was a separate process. Its job was to gather all kinds of useful data about how your database was running. Think of it as a dedicated reporter, constantly taking notes on queries, table access, and more. This information was vital for understanding performance.

When PostgreSQL 15 came out, many noticed that this separate process was no longer there. It looked like it had simply been removed. This led to a lot of head-scratching and concern among database administrators and developers.

"The stats collector didn't vanish, it simply grew up and moved inside the main system. It's still there, just working in a smarter way."

The reality is far less dramatic. The stats collector wasn't deleted. Instead, its functions were integrated directly into the core PostgreSQL processes. This means the reporting is now handled internally, without needing a separate program running alongside the main database. It's a big shift, but one designed for improvement.

Why This Behind-the-Scenes Change Boosts Performance

The main reason for integrating the stats collector was to make PostgreSQL run faster and more efficiently. Having a separate process meant there was always a little bit of extra work happening in the background. This "overhead" could sometimes slow things down, especially on very busy systems.

By moving the stats collection into shared memory, the database can now gather information with much less effort. This change is like upgrading from a slow, external data recorder to a super-fast, built-in sensor. The data is collected directly and quickly, reducing the burden on the system. This improved efficiency is a key benefit of PostgreSQL 15.

Faster Data, Less Lag

Think of it this way: before, the main database had to send messages to the separate stats collector, which then wrote down the information. Now, the main database writes the information directly into a shared space that other tools can read instantly. This cuts out a whole step, making the process quicker and less demanding on your computer's resources.

This means your applications can run smoother, and your database can handle more requests without slowing down. It’s a subtle but powerful change that contributes to the overall speed and responsiveness of PostgreSQL

  1. For anyone running a high-traffic website or application, this is a welcome upgrade.

Other New Features You Can't

Miss in PostgreSQL 15

Beyond the stats collector change, PostgreSQL 15 brought a host of other important updates. These additions improve how developers write queries, how the database handles data, and how it performs complex operations. It's not just about what's under the hood, but also new tools for daily use.

The MERGE Command Arrives

One of the most anticipated new features is the MERGE command. This command is a standard part of SQL that makes it much easier to combine actions like inserting, updating, or deleting data into one single statement. Before, you often had to write separate commands for these tasks.

For example, if you wanted to update a customer's record if they exist, or create a new one if they don't, MERGE lets you do it all at once. This simplifies complex data synchronization tasks and makes your database code cleaner and easier to manage. It's a big win for developers.

Improved Sorting Performance

PostgreSQL 15 also brings significant speed improvements for sorting operations. Functions like row_number() and rank() (which are used to assign unique numbers or ranks to rows in a result set) now run much faster. This is especially helpful for large datasets where sorting can be a time-consuming process.

If your applications often deal with ordered lists, leaderboards, or complex reports that require ranking, you will likely see a noticeable boost in speed. These optimizations mean less waiting and quicker results for your users.

Enhanced

Security and Logging for Peace of Mind

Security is always a top concern for any database system, and PostgreSQL 15 makes important strides here too. The update includes features that give administrators more control and better ways to monitor what's happening within their databases.

New Log Format: JSON Logs

A big step forward for monitoring is the introduction of a new logging format: JSON logs. Instead of plain text logs, you can now have PostgreSQL output its activity logs in JSON format. This might seem like a small detail, but it's incredibly powerful.

JSON logs are structured data, which means they are much easier for automated tools and scripts to read and analyze. This helps with quickly identifying issues, tracking suspicious activity, and integrating logs into modern monitoring systems. It makes database auditing much more efficient.

Stricter Defaults for the public Schema

Another security enhancement involves the default permissions for the public schema. In previous versions, new databases often allowed anyone to create objects (like tables) in the public schema by default. PostgreSQL 15 changes this.

Now, by default, only the database owner has permission to create objects in public. This is a small but important step towards a more secure setup, preventing accidental or malicious creation of objects by unauthorized users. Administrators now have to explicitly grant these permissions if they are needed.

What

Developers and Admins Need to Know

For those who work daily with PostgreSQL, these changes mean a few things. While the stats collector is now integrated, the information it gathers is still available through the same views and functions you used before. Your monitoring tools should continue to work, though some might benefit from updates to take advantage of the new internal workings.

Here are a few key points:

  • Performance gains: Expect better performance, especially on busy systems, thanks to the integrated stats collection and sorting improvements.

  • SQL power: The MERGE command opens up new ways to write more efficient and readable data manipulation statements.

  • Easier monitoring: JSON logs make it simpler to automate log analysis and integrate with existing monitoring dashboards.

  • Security by default: Be aware of the stricter public schema permissions and adjust your scripts or processes if you rely on the old defaults.

  • Stay updated: As with any major version, it's always a good idea to test your applications thoroughly before upgrading your production databases.

PostgreSQL 15 might have seemed to hide a familiar friend, the stats collector, but in reality, it brought it closer to the heart of the database. These changes, along with powerful new SQL commands and enhanced security features, make PostgreSQL even stronger. It shows a clear path towards better performance, easier development, and a more secure database environment. What seemed like a loss was actually a clever upgrade, ensuring PostgreSQL continues to be a leading choice for data management.

How does this make you feel?

Comments

0/2000

Loading comments...