Re: Fail-over PG server in connection string - syntax ?

Поиск
Список
Период
Сортировка
От Chen Huajun
Тема Re: Fail-over PG server in connection string - syntax ?
Дата
Msg-id 51EE2159.8000109@cn.fujitsu.com
обсуждение исходный текст
Ответ на Fail-over PG server in connection string - syntax ?  (Mistina Michal <Michal.Mistina@virte.sk>)
Список pgsql-jdbc
hi Michal,


 >What is the correct syntax for building connection string? Should the fail-over within postgres-jdbc driver work?

The correct syntax is as the following
jdbc:postgresql://host1:port1,host2:port2/test


 >                  String connectionString = "jdbc:postgresql://pgsqldc1:5432/test,pgsqldc2:5432/test";

In the above sample,the correct connection string should looks like that

String connectionString = "jdbc:postgresql://pgsqldc1:5432,pgsqldc2:5432/test";


Best regards,
Chen Huajun





В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Mistina Michal
Дата:
Сообщение: Fail-over PG server in connection string - syntax ?
Следующее
От: Sven Holcombe
Дата:
Сообщение: Unpack an org.postgresql.geometric.PGpoint