From 81511510a8f390a28ab429766f9eb2635c5d8f6c Mon Sep 17 00:00:00 2001
From: Ubuntu <ubuntu@ip-172-31-41-11.ec2.internal>
Date: Mon, 25 Aug 2025 18:22:11 +0000
Subject: [PATCH v1 1/2] repro

---
 contrib/pg_stat_statements/pg_stat_statements.c | 2 +-
 src/include/pg_config_manual.h                  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c
index 1cb368c8590..42c7379e4a5 100644
--- a/contrib/pg_stat_statements/pg_stat_statements.c
+++ b/contrib/pg_stat_statements/pg_stat_statements.c
@@ -1076,7 +1076,7 @@ static void
 pgss_ExecutorEnd(QueryDesc *queryDesc)
 {
 	int64		queryId = queryDesc->plannedstmt->queryId;
-
+	GetNamedLWLockTranche("pg_stat_statements");
 	if (queryId != INT64CONST(0) && queryDesc->totaltime &&
 		pgss_enabled(nesting_level))
 	{
diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h
index 7e1aa422332..763239e7829 100644
--- a/src/include/pg_config_manual.h
+++ b/src/include/pg_config_manual.h
@@ -117,9 +117,9 @@
  * fork()).  On other platforms, it's only useful for verifying those
  * otherwise Windows-specific code paths.
  */
-#if defined(WIN32) && !defined(__CYGWIN__)
+//#if defined(WIN32) && !defined(__CYGWIN__)
 #define EXEC_BACKEND
-#endif
+//#endif
 
 /*
  * USE_POSIX_FADVISE controls whether Postgres will attempt to use the
-- 
2.43.0

