File tree Expand file tree Collapse file tree
pg_lake_engine/src/pgduck Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -206,18 +206,19 @@ ResolvePgduckConninfo(void)
206206PGDuckConnection *
207207GetPGDuckConnection (void )
208208{
209- InitializePGDuckClient ();
210-
211- /*
212- * PGHOSTADDR, if set in the server environment, overrides host= in the
213- * conninfo — including unix-socket paths — and silently redirects libpq
214- * to connect via TCP to a numeric IP instead. Clear it before connecting
215- * so PgduckServerConninfo is always honoured. Unlike PGHOST/PGPORT, which
216- * lose to explicit conninfo values, PGHOSTADDR unconditionally wins.
217- */
218- unsetenv ("PGHOSTADDR" );
219-
220- PGconn * connection = PQconnectdb (PgduckServerConninfo );
209+ InitializePGDuckClient ();
210+
211+ /*
212+ * PGHOSTADDR, if set in the server environment, overrides host= in the
213+ * conninfo — including unix-socket paths — and silently redirects
214+ * libpq to connect via TCP to a numeric IP instead. Clear it before
215+ * connecting so PgduckServerConninfo is always honoured. Unlike
216+ * PGHOST/PGPORT, which lose to explicit conninfo values, PGHOSTADDR
217+ * unconditionally wins.
218+ */
219+ unsetenv ("PGHOSTADDR" );
220+
221+ PGconn * connection = PQconnectdb (PgduckServerConninfo );
221222
222223 if (PQstatus (connection ) != CONNECTION_OK )
223224 {
You can’t perform that action at this time.
0 commit comments