image: "assets/wl_lwlock_relcacheinit.png"
description: "Waiting to read or write the relation cache initialization file."
publish: "true"
status: "hardened"
---
> [!RelCacheInit]
> <table><tr><td rowspan="4" width="25%"><img src="assets/wl_lwlock_relcacheinit.png"></td><td><b>Wait Category</b></td><td>LWLock</td></tr><tr><td><b>Mechanism</b></td><td><code>RelCacheInitLock</code></td><td><b>Operations</b></td><td><a href="Operations/Table/SeqScan">SeqScan</a></td></tr><tr><td><b>Resources</b></td><td><a href="Resources/disk IO">disk IO</a>, <a href="Resources/CPU">CPU</a></td></tr><tr><td colspan="3">Contention on the <b>Backend Bootstrap Layer</b>. To avoid the expensive overhead of scanning the system catalogs for every new connection, Postgres maintains a cache of core relation metadata on disk.</td></tr></table>