From 1e8086153347e3a35fc2997632791153e1c36032 Mon Sep 17 00:00:00 2001
From: Nazir Bilal Yavuz <byavuz81@gmail.com>
Date: Fri, 4 Sep 2026 17:21:51 +0300
Subject: [PATCH v2 1/8] ci: Temporarily enable fsync everywhere

To test AIO fsync support patches. Not submitted for commit.

Discussion: https://postgr.es/m/CAN55FZ0vLWJQNB%3DHuHXG2wabFjXJd6OWTa3%3DkRzwObdZD9poHQ%40mail.gmail.com
---
 .github/workflows/pg-ci.yml  | 2 +-
 src/test/ssl/t/SSL/Server.pm | 1 -
 src/tools/ci/pg_ci_base.conf | 3 +++
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/pg-ci.yml b/.github/workflows/pg-ci.yml
index a2629c8335a..c0019a1f91f 100644
--- a/.github/workflows/pg-ci.yml
+++ b/.github/workflows/pg-ci.yml
@@ -608,7 +608,7 @@ jobs:
 
           # Log into a place that will be archived in case of failure
           mkdir -p build/testrun
-          build/tmp_install/usr/local/pgsql/bin/pg_ctl -c -o '-c fsync=off' -D build/runningcheck -l build/testrun/runningcheck.log start
+          build/tmp_install/usr/local/pgsql/bin/pg_ctl -c -D build/runningcheck -l build/testrun/runningcheck.log start
 
           # Run the tests supporting running against an already running
           meson test ${{env.MTEST_ARGS}} --num-processes ${{env.TEST_JOBS}} --setup running
diff --git a/src/test/ssl/t/SSL/Server.pm b/src/test/ssl/t/SSL/Server.pm
index 4400a432f42..d5e723d156f 100644
--- a/src/test/ssl/t/SSL/Server.pm
+++ b/src/test/ssl/t/SSL/Server.pm
@@ -199,7 +199,6 @@ sub configure_test_server_for_ssl
 	# enable logging etc.
 	$node->append_conf(
 		'postgresql.conf', <<EOF
-fsync=off
 log_connections=all
 log_hostname=on
 listen_addresses='$serverhost'
diff --git a/src/tools/ci/pg_ci_base.conf b/src/tools/ci/pg_ci_base.conf
index ff05646c90e..b96bd4a4786 100644
--- a/src/tools/ci/pg_ci_base.conf
+++ b/src/tools/ci/pg_ci_base.conf
@@ -5,6 +5,9 @@ restart_after_crash = false
 # prepared statements
 max_prepared_transactions = 10
 
+# Exercise fsync code paths in CI
+fsync = on
+
 # Settings that make logs more useful
 log_autovacuum_min_duration = 0
 log_autoanalyze_min_duration = 0
-- 
2.47.3

