> [!PgStatsDSA]
> <table><tr><td rowspan="4" width="25%"><img src="assets/wl_lw_pgstatsdsa.png"></td><td><b>Wait Category</b></td><td>LWLock</td></tr><tr><td><b>Mechanism</b></td><td><code>PgStatsLock</code></td></tr><tr><td><b>Operations</b></td><td><a href="Operations/Table/SeqScan">SeqScan</a>, <a href="Operations/Tuple/ModifyTable">ModifyTable</a></td></tr><tr><td><b>Resources</b></td><td><a href="Resources/RAM">Memory</a>, <a href="Resources/CPU">CPU</a></td></tr><tr><td colspan="3">This wait event represents a synchronization stall in <b>Observability Memory Management</b>. While the <code>PgStatsHash</code> lock protects the lookup table, the <code>PgStatsDSA</code> lock protects the actual heap of memory where the statistics for every table, index, and function are stored.</td></tr></table>