Neues vom PostgreSQL Planet

Neues vom PostgreSQL Planet Feed abonnieren
Planet PostgreSQL
Aktualisiert: vor 1 Stunde 27 Minuten

Aleksei Aleinikov: PostgreSQL Indexes: Which Type to Use (10M-Row Benchmark)

23. Oktober 2026 - 8:00

Every Postgres team eventually types CREATE INDEX in a hurry, and most of them type the same one. B-tree is the right default, but it is not always the right answer. On a table with 10 million rows I found an index that was 3,000 times smaller and only 3 times slower, an index that did nothing at all, and a “covering” index that made queries faster until a routine UPDATE took the advantage away.

Christophe Pettus: All Your GUCs in a Row: the recovery_target parameters

23. Oktober 2026 - 3:00
Restore to the moment before the disaster using eight parameters that answer where replay stops, which timeline to follow, and what to do when you get there. (I consult on PostgreSQL through PGX Inc..)

Pavel Luzanov: PostgreSQL 19: part 5.4 (SQL, DEV1 and DEV2) of CommitFest 2026-03

23. Oktober 2026 - 2:00

We’re wrapping up our review of the March CommitFest for PostgreSQL 19. This fourth and final article in the series covers the changes related to SQL and to our DEV1 and DEV2 courses.

As a reminder, here’s the plan for our coverage of the final PostgreSQL 19 CommitFest:

Part 5.1 (QPT)

Igor Suhorukov: A knowledge base without a second database: Oxigraph’s SPARQL in PostgreSQL 19

23. Oktober 2026 - 2:00

In my last post, a friend of mine kept four databases in production. Ask a team like that for a knowledge graph, and you can guess the fifth: a triple store. Search over company data, an ontology of products or skills, facts for an LLM application: a knowledge base often means RDF and SPARQL, and usually a separate server next to the relational database.

Devrim GÜNDÜZ: PostGIS is back on Amazon Linux 2023 (with SFCGAL this time)

22. Oktober 2026 - 23:08
The PostgreSQL RPM repository has supported Amazon Linux 2023 for a while, but until this week it had no GIS packages there: a few weeks ago I removed the AL2023 build of the GIS stack, as the distribution does not ship several libraries our GDAL was built against (hdf5, netcdf, xerces-c, Qt and friends).

Taking a second look, all of those turned out to be optional GDAL drivers, so I put the whole stack back, and this time PostGIS also comes with SFCGAL. Everything is available for PostgreSQL 14 to 18, on both x86_64 and aarch64.

Muhammad Aqeel: Undo for Postgres, without losing the rest of your day

22. Oktober 2026 - 18:41

Postgres gives you no way to take back a single statement. When someone runs an UPDATE without its WHERE clause, recovery is a procedure rather than a command. You restore a copy of the database to the moment before the mistake, pull out the rows that were damaged, and reconcile them by hand against a live table that has kept moving since.This kind of recovery works, and teams do it. It also takes hours, needs your most senior person, and every step is a chance to make things worse while the table is still serving traffic.

Umair Shahid: Your app does not need PostgreSQL superuser

22. Oktober 2026 - 18:29

A PostgreSQL superuser can read any file on the server, write to it, and run shell commands on the host. That is more than just a powerful database account. It is shell access.

This is also why the role your application logs in with should almost never be a superuser. Most tools ask for it anyway, because it is the easy way to make setup “just work.” The problem is what else comes attached. 

Christophe Pettus: Binary read replicas in PostgreSQL, Part 3

22. Oktober 2026 - 18:00
Create replicas with a single command, but master the procedure for replacing a failed primary—that's where things get tricky and installations break. (I consult on PostgreSQL through PGX Inc..)

Christophe Pettus: All Your GUCs in a Row: recovery_prefetch

22. Oktober 2026 - 3:00
Standby lagging on network storage? `recovery_prefetch` lets WAL replay ask the kernel to read pages before it needs them, turning seventeen minutes of… (I consult on PostgreSQL through PGX Inc..)

Lætitia AVROT: Region : a lesson in data integrity

22. Oktober 2026 - 2:00
Yesterday, a colleague of mine opened a simple PR. The business needed a region on an existing table, so he added a text column to hold it. Clean, small, ready to review and merge. Database internals? No problem. This was going to be a five-minute approval. I did not approve it. Not because the code was wrong. The code was fine. I challenged the content: why a free-text column? Why not a domain, an enum, a text column with a check constraint, or a reference table?

Christophe Pettus: Binary read replicas in PostgreSQL, Part 2

21. Oktober 2026 - 18:00
Read replicas are one tool, but tuning a replica for one job and sending it another is a recipe for conflict. (I consult on PostgreSQL through PGX Inc..)

Jeremy Schneider: Postgres recovery_prefetch Considered Harmful and Causing Outages

21. Oktober 2026 - 8:59

Another story of something I saw in the field which surprised me. Turns out recovery_prefetch can cause outages.

Something which has been happening quietly in the background all the time, but we didn’t notice until we looked close enough to see it.

Ayoub Kazar: PostgreSQL as a graph database, part 1: SQL/PGQ in PostgreSQL

21. Oktober 2026 - 2:00

This is the second post in a series exploring graph databases and PostgreSQL. The first post covered what graphs are, what can be modeled as a graph, and the landscape of graph database systems. This post moves from the general to the specific: how we query graphs, why SQL can be an awkward fit, and what SQL/PGQ changes. It ends with the PostgreSQL implementation, why it was reverted, and a few notes on the main features still to come.

Igor Suhorukov: My PostgreSQL is faster than yours and has almost caught up with ClickHouse

21. Oktober 2026 - 2:00

A friend of mine is an excellent architect but a complete snob. He has four different databases in production: PostgreSQL for OLTP, ClickHouse for OpenTelemetry data and web analytics, Elasticsearch for full-text search in the application, and MongoDB, “for historical reasons.”

In between, there are ETL and CDC pipelines, plus on-call developers hunting for where exactly the results don’t match. To him, it’s all a well-thought-out architecture; to me, it’s needless complexity in maintenance and development.

Regina Obe: PostGIS 3.7.0rc3

21. Oktober 2026 - 2:00

The PostGIS Team is pleased to release PostGIS 3.7.0rc3! Best Served with PostgreSQL 19 RC 1 , GEOS 3.15.0 , postgis_tiger_geocoder 2025.2 , and address_standardizer.

Christophe Pettus: Binary read replicas in PostgreSQL, Part 1

20. Oktober 2026 - 18:00
A read replica is a PostgreSQL server in permanent recovery that accepts queries—and nearly every surprise it causes follows from that fact. (I consult on PostgreSQL through PGX Inc..)

Christophe Pettus: All Your GUCs in a Row: recovery_min_apply_delay

20. Oktober 2026 - 15:00
recovery_min_apply_delay makes a standby late on purpose. For the length of the delay there is a running, queryable copy of your database on which the DELETE without a WHERE clause has not happened yet. That is the whole feature, and it is a good one. The problem is that almost everyone who sets … (I consult on PostgreSQL through PGX Inc..)

Christophe Pettus: All Your GUCs in a Row: recovery_init_sync_method

20. Oktober 2026 - 3:00
After a crash, PostgreSQL syncs every file in your data directory before replaying any WAL—and on large clusters, this can consume minutes. (I consult on PostgreSQL through PGX Inc..)

Christophe Pettus: All Your GUCs in a Row: recovery_end_command

20. Oktober 2026 - 3:00
A hook that fires exactly once at promotion or restore completion—but the server is neither ready nor recovering while your command runs. (I consult on PostgreSQL through PGX Inc..)

Seiten