summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/libpq-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r--src/interfaces/libpq/libpq-int.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h
index 8ebeae6c630..50d6f3a1d45 100644
--- a/src/interfaces/libpq/libpq-int.h
+++ b/src/interfaces/libpq/libpq-int.h
@@ -312,7 +312,7 @@ typedef struct pg_conn_host
char *password; /* password for this host, read from the
* password file; NULL if not sought or not
* found in password file. */
- struct addrinfo *addrlist; /* list of possible backend addresses */
+ struct addrinfo *was_addrlist; /* dummy for ABI compatibility */
} pg_conn_host;
/*
@@ -495,6 +495,10 @@ struct pg_conn
/* Buffer for receiving various parts of messages */
PQExpBufferData workBuffer; /* expansible string */
+
+ /* Placed at the end, in this branch, to minimize ABI breakage */
+ struct addrinfo *addrlist; /* list of addresses for current connhost */
+ int addrlist_family; /* needed to know how to free addrlist */
};
/* PGcancel stores all data necessary to cancel a connection. A copy of this