Arriving at PGConf.eu

Well, the trip to Valencia was rather chaotic: a cancelled flight and so on…

So, I arrived on Wednesday (October 21st) around 1 PM. Obviously I missed some talks. I almost missed lunch too; at that hour the troughs were rather empty and the desserts had long since deserted the tables.

Talks and talks

Wednesday

Almost all of the talks I intended to attend were tagged “internals”, except for Zooming in on OOM: a deep dive into Postgres and Linux memory.
This talk, by Oleksii Kliukin and Dimitris Sideris of Tiger Data, was interesting and brought out a new way to limit Out Of Memory (OOM) occurrences, which is particularly good for PostgreSQL over Kubernetes. While the slides have not been published yet, you can see a previous version from Swiss PGDay 2026 here. The solution caps allocations through an LD_PRELOAD library, with the limit computed from the cgroup ceiling, shared memory footprint and kernel overhead, and pushed at runtime by Patroni hooks and a Postgres extension — no restart. As far as I remember, a new memory allocator controller was built, which does not appear in the Swiss presentation.

I attended The anatomy of PostgreSQL row lock.
Laurenz is known as the author of oracle_fdw, which allows fetching data directly from an Oracle database into PostgreSQL. The talk was nice but too short. It covered the row-level lock modes, how PostgreSQL uses KeyShareLock to maintain foreign key consistency, how the locks are stored in the tuple header, and how MultiXacts aggregate several lockers on the same tuple.
Later, Laurenz, Jean-Paul Argudo and I talked about how to help the PostgreSQL community by responding to people’s problems.

I attended Silver Sponsor Lightning Talks to support Ayoub Kazar, my colleague at Data Bene.
He presented a talk on SQL/PGQ. PGQ stands for Property Graph Queries. He was the actor, I was the camera operator. Special congrats to him for his first talk at PGConf. He faced technical issues (video signal disruptions due to the provided laptop) but did succeed in delivering the result of his hard work.
I was interested in walshadow a tool to do Change Data Capture from Physical Streaming Replication (including schema changes). It seems to be a lightweight enhanced logical decoder on the replica side.

I attended Evolving how we tune Postgres.
To summarize, Lukas said “do not trust your favorite LLM if you don’t want to get surprises. Use the right tooling to adjust your system”. While I recognize LLMs can help in making sure we do not forget the obvious or the less obvious, I feel people let LLMs drive them too much. My 50 cents piece of advice: an LLM should be at most your assistant, not the one to do the job. Remember LLM models are probabilistic, so they can produce fallacies mixed into plausible text and it gets difficult to filter the right things out if you don’t pay extra attention.

Thursday

I attended Where next for parallel query execution?.
Thomas showed us what he has done and what the remaining work is (for example how to parallelize sub-plans driven by HashJoin). He is a nice person, open to discussing things with other people. He is mainly involved in AIO and parallelization as you should have guessed.

I followed with An overview of index prefetching from Peter Geoghegan.
He explained the limits of what could be prefetched. While it is easy to use prefetching on Bitmap Heap Scan, doing the same for Index Scan is much more difficult because it is related to how much you know about the future of the current query execution. The current execution model does not help because it processes one tuple at a time which prevents the executor from knowing what will be needed next (e.g., in the near future). Peter is confident PostgreSQL 20 could benefit from Index Scan Prefetching after changing the executor model to use queues.

I went to Rethinking shared memory for flexibility and elasticity.
I like the feature a lot because it allows resizing shared buffers online.
I raised a point during the talk. When creating/asking for a shared memory segment, we have to set min_size and max_size values. Once set, max_size cannot be changed afterwards. So for maximal flexibility you would like to set max_size as high as possible (e.g., the total RAM on the server). As a result, max_size is how much virtual memory address space we have to RESERVE. By default, reserved memory is not materialized as physical memory pages. As a result you can ask more than you will use. When vm.overcommit_memory = 2 (STRICT mode), reserving memory is accounted as committed memory (translated to physical memory, and the system refuses to promise more). With STRICT mode, what you reserved is supposed to be used! This leads to two questions:

  • How do you choose max_size?
  • How do you cope with Huge Pages whose size can be 2MB or 1GB?
    Depending on Huge Pages management, we can consume one large page (2MB or 1GB) while asking for a small shared segment, which can lead to premature memory exhaustion.
    Ashutosh, Hannu and I spent some time discussing these two points.

I made my way to auditorium 3 to see Alicja Kucharczyk talking about logging.
It was a good talk for beginners. I advise you to try log_destination = stderr,csvlog to compare the outputs and decide what is better for you (choose CSVLOG…). I’m likely to deliver a talk on this.

Tomas Vondra talked about AIO performance.
In short, AIO delivers significantly better performance compared to sync IO. io_workers seem more versatile (memcpy/checksums off-loading, enabled in Kubernetes) than io_uring (security issues, forbidden in k8s). I agree that io_workers are more flexible than io_uring, but I would not say io_workers always deliver better performance compared to io_uring. The tests were conducted on an idle system where no SQL backends, no parallel workers and so on were running heavily. With a system under scheduling pressure, io_uring is likely to deliver better performance.
Also, a few open points remain:

  • how to tune the number of io_workers needed to maximize performance, knowing io_workers are not CPU-free?
  • same question with io_uring?
  • same question with effective_io_concurrency?

I followed with Identifying bottlenecks in Postgres workloads from Andres.
You now have a set of recipes from Andres to catch what may be saturating your workload. Feel free to take inspiration from them. I believe the most underestimated metrics are wait events (see pg_wait_sampling).

My final talk was Finding the invisible … before they appear by Andrei Lepikhov.
It was a nice talk proposing pg_track_optimizer. It compares the planner’s estimates with the actual execution statistics, which helps detect where a plan starts to diverge from reality before the query performance gets bad. You should have a look at it. The project page is here.

People

I met many people, most of whom I already knew. I had a good time speaking with them all.

I was actually surprised to see how many PostgreSQL people I know!

Leaving

Well, I left on Friday and guess what, my trip went badly too…