Nik Samokhvalov· @samokhvalov · X·· 15d ago
PostgreSQL 18.6 Temp Table Throughput Drops to 127 TPS With 5000 Idle Connections
Key Takeaway
In a DBLab Forge test on PostgreSQL 18.6 targeting 500 TPS for temp table creation and removal, throughput was 502 TPS at both 0 and 1000 idle connections, 274 TPS at 3000, and 127 TPS at 5000. At 5000, DDL sessions spent 91% of their active time waiting on LWLock:SInvalWrite.
Why It Matters
The test shows why idle connection counts are worth checking alongside DDL lock waits when diagnosing a drop in temp table creation and removal throughput.
Source: Nik Samokhvalov (@samokhvalov)· x.com
PG Radar summarizes verified changes and impact. Read the original post for full technical details and code samples.