Avoid including clog.h in proc.h
Álvaro Herrera <alvherre@kurilemu.de>
Avoid including clog.h in proc.h The number of .c files that must include access/clog.h can currently be counted on one's fingers and miss only one (assuming one has the usual number of hands). However, due to indirect inclusion via proc.h, there's a lot of files that are pointlessly including it. This is easy to avoid with the easy trick implemented by this commit. Author: Álvaro Herrera <alvherre@kurilemu.de> Discussion: https://postgr.es/m/202603221856.iwlhitt6dxxx@alvherre.pgsql
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/proc.c | modified | +1 −0 |
| src/include/storage/proc.h | modified | +3 −1 |
Discussion
- Adding locks statistics 61 messages · 2025-08-01 → 2026-04-07