From 4c1553cb8eed704f2ecd37ccf7023fb336ebf88d Mon Sep 17 00:00:00 2001
From: Andres Freund <andres@anarazel.de>
Date: Wed, 3 Jun 2026 13:49:29 -0400
Subject: [PATCH v9a 19/22] ci: windows-mingw, also setup hosts file

---
 .github/workflows/pg-ci.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/pg-ci.yml b/.github/workflows/pg-ci.yml
index 3d8845bbda6..adb5ef5780e 100644
--- a/.github/workflows/pg-ci.yml
+++ b/.github/workflows/pg-ci.yml
@@ -846,7 +846,8 @@ jobs:
           if (!$?) { throw 'cmdfail' }
           echo ::endgroup::
 
-      - name: Setup hosts file
+      - &window_setup_hosts_step
+        name: Setup hosts file
         shell: pwsh
         run: |
           Add-Content c:\Windows\System32\Drivers\etc\hosts "127.0.0.1 pg-loadbalancetest"
@@ -922,6 +923,7 @@ jobs:
 
     steps:
       - *windows_disable_defender_step
+      - *window_setup_hosts_step
       - *checkout_step
 
       # Relocate the preinstalled MSYS2 tree from C:\ (slow system disk) to
-- 
2.54.0.380.gc69baaf57b

