Journey of developing a Performance Optimization Feature in PostgreSQL
Presented by:
Rahila Syed
With 13 years of hands-on experience as a PostgreSQL developer, I've had the exciting opportunity to co-author patches for WAL compression, default partitioning, vacuum progress checker, column filtering in logical replication, and several other enhancements. I also contributed to building an extension that enables distributed databases on PostgreSQL. Currently, I'm thrilled to be part of Microsoft, where I'm designing and developing features for open-source PostgreSQL. I enjoy attending conferences and sharing insights about my recent work with PostgreSQL.
No video of the event yet, sorry!
In this talk, I will share the journey of identifying and optimizing a performance bottleneck in PostgreSQL. The session will walk through a systematic approach to diagnosing performance issues — distinguishing whether the bottleneck lies in the CPU, I/O, or network — and how iterative profiling and analysis can guide effective optimizations. Using perf and other diagnostic tools, we’ll examine how bottlenecks can shift during optimization, sometimes masking real gains. I will demonstrate how to effectively measure improvement in performance through careful tuning of the database, along with use of pgbench and custom benchmarking scripts tailored to the optimization under test.
As a practical example, we will explore an optimization in PostgreSQL’s physical replication that enables the WAL sender to transmit WAL records to standbys before they are flushed to disk on the primary. This enhancement aims to reduce replication latency by leveraging WAL buffers to send data more proactively, minimizing disk reads and improving network utilization. For large transactions, this approach allows most WAL data to be sent in parallel with ongoing writes, aligning the flush operations on primary and standby more closely and significantly reducing replication lag.
Attendees will gain insights into the end-to-end journey — from identifying a bottleneck to implementing and validating a performant solution. Join me for a behind-the-scenes look at how performance improvements in PostgreSQL evolve from insight to impact
- Date:
- Duration:
- 45 min
- Room:
- Conference:
- PGConf India, 2026
- Language:
- Track:
- Database Administration
- Difficulty:
- Medium