libpq multiple hosts
Connection strings listing several hosts, with target_session_attrs server selection and load_balance_hosts. Introduced in PostgreSQL 10.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · worked-on · improved · moderate
- PostgreSQL 18 · worked-on · improved · moderate
- PostgreSQL 17 · worked-on · improved · moderate
Threads
- Add require_wal_receiver connection parameter to libpq
- [PATCH] libpq: try all addresses for a host before moving to next on target_session_attrs mismatch
- Add max_wal_replay_size connection parameter to libpq
- Add Option To Check All Addresses For Matching target_session_attr
- libpq behavior with hostname with multiple addresses and target_session_attrs=primary
- libpq async connection and multiple hosts
- Minor code de-duplication in fe-connect.c
- Reorder connection markers in libpq TAP tests
- Make message strings in fe-connect.c consistent
- documentation for PGLOADBALANCEHOSTS environment variable in libpq
- Support load balancing in libpq
- Multiple hosts in connection string failed to failover in non-hot standby mode
- Error in libpq docs for target_session_attrs, prefer-standby mode
- SSL negotiation error on massive connect/disconnect
- Re: Libpq support to connect to standby server as priority
- BUG #16508: using multi-host connection string when the first host is starting fails
- libpq host/hostaddr/conninfo inconsistencies
- hostorder and failover_timeout for libpq
- libpq should not look up all host addresses at once
- libpq connection timeout mismanagement
- Fallout from PQhost() semantics changes
- pgsql: Give a better error message on invalid hostaddr option.
- PQHost() undefined behavior if connecting string contains both host and hostaddr types
- Use of term hostaddrs for multiple hostaddr values
- Libpq support to connect to standby server as priority
- [bug fix] PG10: libpq doesn't connect to alternative hosts when some errors occur
- pgsql: Allow multiple hostaddrs to go with multiple hostnames.
- List of hostaddrs not supported
- [doc fix] PG10: wroing description on connect_timeout when multiple hosts are specified
- [Bug fix]If recovery.conf has target_session_attrs=read-write, the standby fails to start.
- Proposal: Implement failover on libpq connect level.