pg.ddx.io  patroni/patroni GitHub issues and pull requests  
help / color / mirror / Atom feed
From: CyberDem0n (@CyberDem0n) <noreply+CyberDem0n@github.com>
To: patroni/patroni <noreply+patroni-patroni@github.com>
Subject: Re: [patroni/patroni] PR #3787: Accept a Windows drive-letter path as a unix socket directory
Date: Mon, 16 Nov 2026 16:54:16 +0000
Message-ID: <gh-patroni-patroni-3787-r5923765634@github.com> (raw)
In-Reply-To: <gh-patroni-patroni-3787@github.com>
References: <gh-patroni-patroni-3787@github.com>

Custom bootstrap on Windows can't connect to its own PostgreSQL (patroni/postgresql/config.py:677)

replace_pg_hba() still never writes local rules on Windows (addresses = {}), but Patroni can now pick a Windows socket.

Suggested fix:
```diff
inline patch 1: patroni/postgresql/config.py (+2/-1 lines) download inline-1.patch--- 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 \
``` Besides that, this PR breaks PG12 and older on Windows. Please add some guards that will address it.

view thread (17+ messages)  latest in thread

Message-ID: <gh-patroni-patroni-3787-r5923765634@github.com>
Permalink:  ../gh-patroni-patroni-3787-r5923765634@github.com/

 ·  · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox