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
#define CONFLICT_H
#include "access/xlogdefs.h"
+#include "datatype/timestamp.h"
#include "nodes/pg_list.h"
-#include "utils/timestamp.h"
/* Avoid including execnodes.h here */
typedef struct EState EState;
#include "pgstat.h"
#include "utils/builtins.h"
#include "utils/pgstat_internal.h"
+#include "utils/timestamp.h"
PG_MODULE_MAGIC_EXT(
.name = "test_custom_fixed_stats",