Re: Improve pg_stat_statements scalability

Sami Imseih <samimseih@gmail.com>

From: Sami Imseih <samimseih@gmail.com>
To: Lukas Fittl <lukas@fittl.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2026-05-24T01:29:26Z
Lists: pgsql-hackers
> > > pg_stat_statements has well-known scaling problems under
> > > high concurrency. This patch series is an initial proposal
> > > for how to $SUBJECT.
> >
> > Agreed. Let's fix this for Postgres 20.
> >
> > Thank you for putting together initial patches!
>
> For archive's sake and others reading along, we had a productive
> discussion about this today at PGConf.Dev.
>
> I've created a new wiki page combining the prior 2025 discussion, and
> notes from today:
>
> https://wiki.postgresql.org/wiki/Scalability_of_pg_stat_statements

Thank you, Lukas!

--
Sami