Sammlung von Newsfeeds

Shaun Thomas: Using Patroni to Build a Highly Available Postgres Cluster—Part 1: etcd

Neues vom PostgreSQL Planet - 6. März 2026 - 8:48

The last PG Phriday article focused on the architecture of a Patroni cluster—the how and why of the design. This time around, it’s all about actually building one. I’ve often heard that operating Postgres can be intimidating, and Patroni is on a level above that. Well, I won’t argue on the second count, but I can try to at least ease some of the pain.To avoid an overwhelming deluge consisting of twenty pages of instructions, I’ve split this article into a series of three along these lines:

Andreas Scherbaum: PostgreSQL Berlin March 2026 Meetup

Neues vom PostgreSQL Planet - 5. März 2026 - 23:00
On 5th of March, 2026, we had the PostgreSQL March Meetup in Berlin. Zalando hosted it again, and like last time it was four regular talks in two parallel tracks. Attendee number was a bit smaller compared to last time, likely because the Meetup was announced late. The Meetup took place in the Hedwig-Wachenheim-Straße in Berlin, right around the corner from the Uber Arena and East Side Gallery. Zalando has an office here, and the first floor is a large meeting and conference area.

warda bibi: How PostgreSQL Scans Your Data

Neues vom PostgreSQL Planet - 5. März 2026 - 9:15

To understand how PostgreSQL scans data, we first need to understand how PostgreSQL stores it.

Zhang Chen: Inside the Kernel: The Complete Path to PostgreSQL Delete Recovery — From FPW to Data Resurrection

Neues vom PostgreSQL Planet - 5. März 2026 - 1:00
In PostgreSQL, a DELETE operation does not immediately erase data from disk. The MVCC mechanism retains deleted rows as dead tuples, and reading these dead tuples is one viable approach to data recovery. However, this approach has a clear time limitation: once autovacuum completes its cleanup, the dead tuples are physically removed, and recovery methods based on data files become ineffective. At this point, the WAL (Write-Ahead Log) offers an alternative recovery path. Specifically, the **FPW (Full Page Write)** mechanism within WAL is the foundation of this approach.

Zhang Chen: Expert-Level PostgreSQL Deleted Data Recovery in Just 5 Steps — No Kernel Knowledge Required

Neues vom PostgreSQL Planet - 5. März 2026 - 1:00
It is 3 AM. A rogue DELETE just wiped 500,000 customer records. Traditional recovery takes hours and risks collateral damage. This guide shows you how to recover accidental DELETEs and UPDATEs in five steps using PDU — no kernel expertise, no downtime, data back in under a minute.

Robert Haas: pg_plan_advice: Plan Stability and User Planner Control for PostgreSQL?

Neues vom PostgreSQL Planet - 4. März 2026 - 18:55

I'm proposing a very ambitious patch set for PostgreSQL 19. Only time will tell whether it ends up in the release, but I can't resist using this space to give you a short demonstration of what it can do. The patch set introduces three new contrib modules, currently called pg_plan_advice, pg_collect_advice, and pg_stash_advice.

Read more »

Jan Kristof Nidzwetzki: pg_plan_alternatives: Tracing PostgreSQL’s Query Plan Alternatives using eBPF

Neues vom PostgreSQL Planet - 4. März 2026 - 1:00

PostgreSQL uses a cost-based optimizer (CBO) to determine the best execution plan for a given query. The optimizer considers multiple alternative plans during the planning phase. Using the EXPLAIN command, a user can only inspect the chosen plan, but not the alternatives that were considered. To address this gap, I developed pg_plan_alternatives, a tool that uses eBPF to instrument the PostgreSQL optimizer and trace all alternative plans and their costs that were considered during the planning phase.

Lætitia AVROT: Mostly Dead is Slightly Alive: Killing Zombie Sessions

Neues vom PostgreSQL Planet - 4. März 2026 - 1:00
As a PostgreSQL expert, one of the most common “ghosts” I hunt during database audits is the zombie session. You know the one: a backend process that stays active or idle in transaction, holding onto critical locks and preventing vacuum from doing its job, all because the client disappeared without saying goodbye. In the words of Miracle Max from The Princess Bride, there’s a big difference between mostly dead and all dead.

Muhammad Aqeel: pg_semantic_cache in Production: Tags, Eviction, Monitoring, and Python Integration

Neues vom PostgreSQL Planet - 3. März 2026 - 5:20

Part 2 of the Semantic Caching in PostgreSQL series that’ll take you from a working demo to a production-ready system.

Laurenz Albe: INSERT ... ON CONFLICT ... DO SELECT: a new feature in PostgreSQL v19

Neues vom PostgreSQL Planet - 3. März 2026 - 5:00


© Laurenz Albe 2026

PostgreSQL has supported the (non-standard) ON CONFLICT clause for the INSERT statement since version 9.5. In v19, commit 88327092ff added ON CONFLICT ... DO SELECT. A good opportunity to review the benefits of ON CONFLICT and to see how the new variant DO SELECT can be useful!

Cornelia Biacsics: Contributions for week 8, 2026

Neues vom PostgreSQL Planet - 2. März 2026 - 15:20

Prague PostgreSQL Meetup met on Monday, February 23 for the February Edition - organized by Gulcin Yildirim Jelinek & Mayur B.

Speakers:

Gilles Darold: pgdsat version 2.0

Neues vom PostgreSQL Planet - 1. März 2026 - 5:04
The PostgreSQL Database Security Assessment Tool has been updated to conform to the latest version, of the CIS Benchmark fort PostgreSQL

Floor Drees: Developer U: Exercising Cohesion and Technical Skill in PostgreSQL

Neues vom PostgreSQL Planet - 27. Februar 2026 - 18:04
It’s been roughly a year since Andrew Dunstan first proposed an internal training program designed to mentor the next generation of PostgreSQL developers. Last week, the inaugural "Developer U" cohort gathered in for their second in-person session. I caught up with the trainers and participants to get the inside scoop on how the program is evolving.

Vibhor Kumar: Open Source, Open Nerves

Neues vom PostgreSQL Planet - 27. Februar 2026 - 11:22
Trust, Governance, Talent, and the Enterprise Reality of PostgreSQL

Last year at the CIO Summit Mumbai, I had the opportunity to participate in a leadership roundtable with CIOs across banking, fintech, telecom, manufacturing, and digital enterprises.

The session was not a product showcase.

Shaun Thomas: How Patroni Brings High Availability to Postgres

Neues vom PostgreSQL Planet - 27. Februar 2026 - 6:33

Let’s face it, there are a multitude of High Availability tools for managing Postgres clusters. This landscape evolved over a period of decades to reach its current state, and there’s a lot of confusion in the community as a result.

Radim Marek: PostgreSQL Statistics: Why queries run slow

Neues vom PostgreSQL Planet - 27. Februar 2026 - 0:01

Every query starts with a plan. Every slow query probably starts with a bad one. And more often than not, the statistics are to blame. But how does it really work? PostgreSQL doesn't run the query to find out — it estimates the cost. It reads pre-computed data from pg_class and pg_statistic and does the maths to figure out the cheapest path to your data.

Alastair Turner: A reponsible role for AI in Open Source projects?

Neues vom PostgreSQL Planet - 26. Februar 2026 - 15:00

AI-driven pressure on open source maintainers, reviewers and, even, contributors, has been very much in the news lately. Nobody needs another set of edited highlights on the theme from me.

Alastair Turner: A reponsible role for AI in Open Source projects?

Neues vom PostgreSQL Planet - 26. Februar 2026 - 15:00

AI-driven pressure on open source maintainers, reviewers and, even, contributors, has been very much in the news lately. Nobody needs another set of edited highlights on the theme from me. For a Postgres-specific view, and insight on how low quality AI outputs affect contributors, Tomas Vondra published a great post on his blog recently [https://vondra.me/posts/the-ai-inversion/], which referenced an interesting talk by Robert Haas [https://www.pgevents.ca/events/pgconfdev2025/schedule/session/254-committer-review-an-exercise-in-paranoia/] at PGConf.dev in Montreal last year.

Tomas Vondra: The real cost of random I/O

Neues vom PostgreSQL Planet - 26. Februar 2026 - 14:00

The random_page_cost was introduced ~25 years ago, and since the very beginning it’s set to 4.0 by default. The storage changed a lot since then, and so did the Postgres code. It’s likely the default does not quite match the reality. But what value should you use instead? Flash storage is much better at handling random I/O, so maybe you should reduce the default? Some places go as far as recommending setting it to 1.0, same as seq_page_cost. Is this intuition right?

Paul Ramsey: Postgres JSONB Columns and TOAST: A Performance Guide

Neues vom PostgreSQL Planet - 25. Februar 2026 - 16:05

Postgres has a big range of user-facing features that work across many different use cases — with complex abstraction under the hood. 

Working with APIs and arrays in the jsonb type has become increasingly popular recently, and storing pieces of application data using jsonb has become a common design pattern.

But why shred a JSON object into rows and columns and then rehydrate it later to send it back to the client?

Seiten