Re: JDBC connectivity issue

Поиск
Список
Период
Сортировка
От JCMS22
Тема Re: JDBC connectivity issue
Дата
Msg-id 1521814205619-0.post@n3.nabble.com
обсуждение исходный текст
Ответ на JDBC connectivity issue  (chris <chrisk@pgsqlrocket.com>)
Ответы Re: JDBC connectivity issue
Список pgsql-general
I am surprised this was not answered correct yet.

I am in the same bucket as you and here is the problem. A quick look at the
code and you find the answer.

The BaseDataSource class (from which PGSimpleDataSource inherits) does NOT
support failover addresses. The underlying driver used to parse the URL does
it correctly: it returns url1,url2,url3 for URL and port1,port2,port3 for
ports. However, the datasource interprets this as a single address so it
tries to convert the "port1,port2,port3" string to an Integer....and it
crashes.



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html


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

Предыдущее
От: Patricia DECHANDOL
Дата:
Сообщение: RE: Use pgloader with FDW
Следующее
От: JCMS22
Дата:
Сообщение: Re: JDBC connectivity issue