> [!NOTE] ![[assets/wl_lwlock_logicalrepworkerdsa.png|256]]
>
> | | |
> | :--- | :--- |
> | **Wait Category** | LWLock |
> | **Mechanism** | `LogicalRepWorkerLock` |
> | **Operations** | [[Operations/Distributed/Redistribute]] |
> | **Resources** | [[Resources/RAM|Memory]], [[Resources/CPU|CPU]] |
>
> Contention on the **Replication Memory Management Layer**. As a logical replication worker applies changes, it must dynamically allocate shared memory to track the structure of the tables it is modifying and to manage the streaming of large transactions.