PGConf.EU 2026 PostgreSQL Observability Summit

From PostgreSQL wiki
Jump to navigationJump to search

PostgreSQL Observability Summit

This Community Day Event is part of the Friday events at PGConf.EU 2026 in València, Spain.

Website of the Community Event on the conference website

Organizers

  • Gülçin Yıldırım Jelínek
  • Pavlo Golub
  • Lukas Fittl
  • Jimmy Angelakos
  • Adrien Obernesser

Schedule

  • 09:00: Opening (Adrien Obernesser)
  • 09:05: pg_stat_statements: Scaling for the Future (Sami Imseih) slides
  • 09:35: What’s New with Monitoring in PostgreSQL 19 (Gülçin Yıldırım Jelinek) slides
  • 09:50: Stack-based instrumentation for Postgres (Lukas Fittl) slides
  • 10:05: Beyond Sampling: True Wait Event Tracing with pg_wait_tracer (Dmitry Fomin) slides

Break

  • 10:30: Autonomous prioritization: Using pg_stat_statements for targeted PostgreSQL tuning (Luigi Nardi)
  • 11:00: pg_statviz: In-Database Time-Series Analysis, with an AI That Reads Its Own Charts (Jimmy Angelakos) slides
  • 11:15: OpenTelemetry in the Postgres Protocol (Tristan Partin)
  • 11:25: Panel Discussion (Moderated by Pavlo Golub)
  • 12:00: Closing (Adrien Obernesser)

Panel Discussion (Summary)

Moderated by Pavlo Golub.

Panelists: Bertrand Drouvot, Gülçin Yıldırım Jelínek, Sami Imseih, Lukas Fittl, Tristan Partin and Luigi Nardi.

Topic 1: The complexity of PostgreSQL monitoring

PostgreSQL monitoring now spans hundreds of dashboards and on the order of a hundred thousand metrics. Each release adds system views, and each tool built on top of the server adds dashboards of its own. Is this a maturing project, or technical debt?

The growth is largely organic. Metrics are added when a feature arrives without them, so the set of metrics follows the set of features rather than any overall design, and they are often added from the feature author's point of view rather than from what the user will need to look at.

Automation raises the bar on what the metrics must support. Autonomous operation requires the server to manage risk, and managing risk means quantifying it. Single point estimates are no longer enough: distributions are needed to assess the expected risk of an automated action before taking it.

Customers add another dimension. Every customer wants to see something different, and the person paying for a solution often has different needs from the person operating it. The open question is how the metrics PostgreSQL produces are integrated into the systems customers already run, and how new kinds of consumers of those metrics are served.

Topic 2: Conventions and the tooling landscape

OpenTelemetry's conventions exist as an external project. Should they be implemented inside PostgreSQL itself?

On logging, PostgreSQL could provide a facility within its syslogger process that lets extensions hook into the log data and provide alternative output formats, instead of the current practice of shipping JSON logs to an external system where they are not easy to read. On metrics, experience running large numbers of exporters at Neon, now part of Databricks, points to an extension receiving the data and performing the export as the more workable model.

There is real skepticism about designing one way of doing metrics for PostgreSQL. The set each system needs is too large and too varied, particularly for the hyperscalers, and existing tools such as pgwatch and Percona's tooling have each packed in what their users needed. Logs and traces are the more interesting problems: logs as an export problem, traces as a topic still to be worked through.

Who consumes the metrics matters as much as which metrics exist. Dashboards exist because humans were the consumer, and Grafana was there to show and explain. With more of the work done by agents, what matters is exposing the data points and preserving them somewhere for later analysis. On that view more metrics are always better, because the recurring failure in an investigation is to open the code and find that the process in question has no metrics at all.

Topic 3: AI and the consumers of metrics

The old rule that computers must not make decisions because they cannot be held accountable no longer describes practice: many organisations already let computers make decisions. Microsoft's term "co-pilot" is the useful framing. An agent can help with an investigation at two in the morning, but the operator must be able to confirm what the agent claims by seeing the actual metrics and logs. Dashboards remain the evidence.

Self-driving cars offer a comparison with a temporal element. People now put themselves inside a car driven by a computer, trusting it with their own life, and that trust was reached gradually as the systems proved themselves. A database that acts on its own would need to be informed by the full set of metrics rather than a handful of thresholds, and eventually the passenger stops looking at the road.

The comparison has limits. A self-driving car and a database have very different jobs, and "self-driving database" is a poor term for what is wanted. Some things in PostgreSQL should happen automatically and others should not. When the database is down in the morning, the operator needs to understand what happened and to show the graphs that support the explanation, so dashboards are required for comprehension. Even an autonomous system has monitoring behind it, and the real question is accountability: if the system acts, who answers for the action, and how is the AI itself monitored?

Should the server react to its own metrics in predictable ways, under a GUC, for instance by noticing that transaction IDs are being consumed at a high rate and adjusting autovacuum settings before the problem arrives? Adaptive features inside the engine, driven by its own metrics, are a valid next area. Autovacuum shows how hard that is: Melanie Plageman's PGConf.EU 2025 talk on eager freezing described the difficulty of making that behaviour adaptive across the variety of workloads PostgreSQL must support, and the committed design ended up simpler than the original proposal. Extensions may be the better place to try such ideas, since they leave room to experiment without changing the engine.

Topic 4: Who decides what goes into core?

No single person or group owns the decision about which observability features enter PostgreSQL. Ideas arrive from contributors, sometimes from people with experience of other databases that offer more built-in capability.

The practical bar is high. A proposal has to be thought through all the way: more data is always welcome, but committers have to consider deployments with tens of thousands of connections or tens of thousands of tables, where an idea that sounds good can fail. Many good ideas stall on these practical problems and on the review burden. Explaining why a change is useful and worth its cost takes time, and even adding a single timestamp column to a view can prove hard.

The lack of decision makers and working groups is a structural problem of a distributed project. Even so, a committer who adds a feature without the metrics needed to monitor it is doing the project a disservice. The project now expects CI and tests with every change, and metrics should be held to the same standard.

The pluggable cumulative statistics system is the fast path. It was built to let extensions add their own statistics on the same infrastructure, and anyone wanting to add a statistic should look there first.

Closing: PostgreSQL observability in five years

Observability is expected to work better and to include more, to help operators model their systems more effectively, to be more compliant, and to be shaped by the core team's judgement. Telemetry is the discussion still to come.