Hi, hackers!
I accidentially found that some headers in pg_stat_statements are
redundant.
A small patch with removed headers is attached.
Kind regards,
Postgres Professional: http://www.postgrespro.com
From eb03b2d2af0fe7986c23eecd991e2f06fb5867ec Mon Sep 17 00:00:00 2001
From: Mikhail Litsarev <[email protected]>
Date: Mon, 14 Sep 2026 13:55:40 +0300
Subject: [PATCH v1] Remove redundant headers in pg_stat_statements
---
contrib/pg_stat_statements/pg_stat_statements.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c
index 4562222c9fc..f85c0f9bb76 100644
--- a/contrib/pg_stat_statements/pg_stat_statements.c
+++ b/contrib/pg_stat_statements/pg_stat_statements.c
@@ -50,12 +50,9 @@
#include "access/htup_details.h"
#include "access/parallel.h"
#include "catalog/pg_authid.h"
-#include "executor/instrument.h"
#include "funcapi.h"
#include "jit/jit.h"
#include "mb/pg_wchar.h"
-#include "miscadmin.h"
-#include "nodes/queryjumble.h"
#include "optimizer/planner.h"
#include "parser/analyze.h"
#include "pgstat.h"
@@ -67,7 +64,6 @@
#include "tcop/utility.h"
#include "utils/acl.h"
#include "utils/builtins.h"
-#include "utils/memutils.h"
#include "utils/timestamp.h"
#include "utils/tuplestore.h"
--
2.34.1