Commit 642775c
pgduck client: unsetenv PGHOSTADDR before connecting
PGHOSTADDR overrides host= in the conninfo even when an explicit unix-socket
path is set, silently redirecting libpq to connect via TCP instead. Clear
it before PQconnectdb so the configured conninfo is always honoured.
Stacks on #361, which adds ResolvePgduckConninfo() diagnostic logging for the
same issue class. Together the two changes prevent the override and make any
remaining connection failures self-diagnosing.
Fixes #293.
Signed-off-by: Richie Bachala <richie.bachala@snowflake.com>1 parent bba35ff commit 642775c
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
208 | | - | |
209 | | - | |
210 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
211 | 221 | | |
212 | 222 | | |
213 | 223 | | |
| |||
0 commit comments