pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Álvaro Herrera <alvherre@kurilemu.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't include storage/lock.h in so many headers
Date: Tue, 24 Mar 2026 16:11:50 +0000
Message-ID: <E1w54M9-001G5M-1t@gemulon.postgresql.org> (raw )
Don't include storage/lock.h in so many headers
Since storage/locktags.h was added by commit 322bab79744d, many headers
can be made leaner by depending on that instead of on storage/lock.h,
which has many other dependencies.
(In fact, some of these changes were possible even before that.)
Author: Álvaro Herrera <alvherre@kurilemu.de>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/abvrRZo52Yx9ZzWQ@ip-10-97-1-34.eu-west-3.compute.internal
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2102ebb1953fe656a46819e11ff4204e2f918dda
Modified Files
--------------
contrib/amcheck/verify_heapam.c | 1 +
src/backend/access/common/relation.c | 1 +
src/backend/access/common/reloptions.c | 1 +
src/backend/access/heap/heapam_handler.c | 1 +
src/backend/access/index/indexam.c | 1 +
src/backend/access/nbtree/nbtree.c | 1 +
src/backend/access/nbtree/nbtutils.c | 1 +
src/backend/catalog/pg_inherits.c | 1 +
src/backend/catalog/pg_subscription.c | 1 +
src/backend/commands/conversioncmds.c | 1 +
src/backend/commands/discard.c | 1 +
src/backend/commands/tablespace.c | 1 +
src/backend/optimizer/util/inherit.c | 2 ++
src/backend/parser/parse_oper.c | 1 +
src/backend/replication/logical/sequencesync.c | 1 +
src/backend/utils/activity/wait_event.c | 5 +++--
src/backend/utils/cache/relcache.c | 1 +
src/backend/utils/cache/syscache.c | 1 +
src/backend/utils/cache/ts_cache.c | 1 +
src/include/access/reloptions.h | 1 -
src/include/access/twophase.h | 7 ++++++-
src/include/catalog/namespace.h | 2 +-
src/include/catalog/pg_inherits.h | 2 +-
src/include/catalog/toasting.h | 2 +-
src/include/commands/cluster.h | 2 +-
src/include/commands/tablecmds.h | 2 +-
src/include/commands/vacuum.h | 1 -
src/include/replication/worker_internal.h | 1 -
src/include/storage/lmgr.h | 2 +-
src/include/storage/lock.h | 2 +-
src/include/storage/predicate.h | 7 ++++++-
src/include/storage/procarray.h | 1 -
src/include/storage/sinvaladt.h | 1 -
src/include/storage/standby.h | 5 ++++-
34 files changed, 45 insertions(+), 17 deletions(-)
Message-ID: <E1w54M9-001G5M-1t@gemulon.postgresql.org>
Permalink: ../E1w54M9-001G5M-1t@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1w54M9-001G5M-1t@gemulon.postgresql.org
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: alvherre@kurilemu.de, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Don't include storage/lock.h in so many headers
In-Reply-To: <E1w54M9-001G5M-1t@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox