pgsql: Avoid including utils/timestamp.h in conflict.h.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid including utils/timestamp.h in conflict.h.
Date: 2026-02-23 04:54:36
Message-ID: E1vuNxs-000kZu-39@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid including utils/timestamp.h in conflict.h.

conflict.h currently includes utils/timestamp.h despite only requiring
basic timestamp type definitions. This creates unnecessary overhead.

Replace the include with datatype/timestamp.h to provide the necessary
types. This change requires explicitly including utils/timestamp.h in
test_custom_fixed_stats.c, which previously relied on the indirect
inclusion.

Extracted from the larger patch by Andres Freund.
Discussion: https://postgr.es/m/aY-UE-4t7FiYgH3t@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/308622edf1743aa407df0044cc4529aed8de15e6

Modified Files
--------------
src/include/replication/conflict.h | 2 +-
src/test/modules/test_custom_stats/test_custom_fixed_stats.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2026-02-23 07:00:57 pgsql: Fix additional fallthrough warnings from clang
Previous Message Michael Paquier 2026-02-23 04:45:06 pgsql: doc: Add section "Options" for pg_controldata