pgsql: Avoid including clog.h in proc.h

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid including clog.h in proc.h
Date: 2026-03-24 16:32:40
Message-ID: E1w54gK-001GD9-00@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)kurilemu(dot)de>
Discussion: https://postgr.es/m/202603221856.iwlhitt6dxxx@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f227b7b20c36b7348867eec48d539d28cfdf831c

Modified Files
--------------
src/backend/storage/lmgr/proc.c | 1 +
src/include/storage/proc.h | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Melanie Plageman 2026-03-24 18:56:05 pgsql: Use GlobalVisState in vacuum to determine page level visibility
Previous Message Tom Lane 2026-03-24 16:17:21 pgsql: Fix poorly-sized buffers in astreamer compression modules.