--- a/patroni/postgresql/config.py
+++ b/patroni/postgresql/config.py
@@ -674,7 +674,8 @@ class ConfigHandler(object):
         if self._postgresql.bootstrap.running_custom_bootstrap:
-            addresses = {} if os.name == 'nt' else {'': 'local'}  # windows doesn't yet support unix-domain sockets
+            # Windows supports unix-domain sockets only since PostgreSQL 13
+            addresses = {} if os.name == 'nt' and self._postgresql.major_version < 130000 else {'': 'local'}
             if 'host' in self.local_replication_address \
