Skip to content

Commit 856cc29

Browse files
author
hackorum
committed
Apply host.patch
1 parent 4255812 commit 856cc29

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/interfaces/libpq/fe-protocol3.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2486,6 +2486,8 @@ build_startup_packet(const PGconn *conn, char *packet,
24862486

24872487
if (conn->pguser && conn->pguser[0])
24882488
ADD_STARTUP_OPTION("user", conn->pguser);
2489+
if (conn->pghost && conn->pghost[0])
2490+
ADD_STARTUP_OPTION("host", conn->pghost);
24892491
if (conn->dbName && conn->dbName[0])
24902492
ADD_STARTUP_OPTION("database", conn->dbName);
24912493
if (conn->replication && conn->replication[0])

0 commit comments

Comments
 (0)