skip to main content
Part 2: The 32-Bit/64-Bit Drivers : The PostgreSQL Wire Protocol Driver : Connection Option Descriptions : Alternate Servers
  
Alternate Servers
Attribute
AlternateServers (ASRV)
Purpose
A list of alternate database servers to which the driver tries to connect if the primary database server is unavailable. Specifying a value for this option enables connection failover for the driver. The value you specify must be in the form of a string that defines the physical location of each alternate server. All of the other required connection information for each alternate server is the same as what is defined for the primary server connection.
Valid Values
(HostName=hostvalue:PortNumber=portvalue:Database=databasevalue[, . . .])
You must specify the host name, port number, and database name of each alternate server.
Example
The following Alternate Servers value defines two alternate database servers for connection failover:
AlternateServers=(HostName=PostgreSQLServer:
PortNumber=5431:Database=Pgredb1,
HostName=255.201.11.24:PortNumber=5432:Database=Pgredb2)
Notes
*An alternate server address in IPv6 format must be enclosed in double quotation marks.
Default
None
GUI Tab
Failover tab