Re: Can I tell libpq to connect to the primary?

Поиск
Список
Период
Сортировка
От Christian Ramseyer
Тема Re: Can I tell libpq to connect to the primary?
Дата
Msg-id 77fdd49c-2977-6e68-1206-fade93701d72@networkz.ch
обсуждение исходный текст
Ответ на Can I tell libpq to connect to the primary?  (Christian Ramseyer <rc@networkz.ch>)
Ответы Re: Can I tell libpq to connect to the primary?
Список pgsql-general
On 22.04.20 21:10, Christian Ramseyer wrote:
> 
> I see that in pgjdbc there are additional options for targetServerType =
> any, primary, secondary, preferSlave and preferSecondary[2]. However
> this seems to be java-specific and not implemented in libpq? Is there a
> way to get this behaviour in PHP/Psycopg/Perl DBI?
> 

Never mind, after RTFM'ing to the very end of
https://www.postgresql.org/docs/current/libpq-connect.html I have
discovered target_session_attrs=read-write|any which seems to do exactly
what I want.

Cheers
Christian



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

Предыдущее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: How do work tercile, percentile & funcion percentile_cont() ?
Следующее
От: Stefan Knecht
Дата:
Сообщение: pg11: Query using index, but only for half the partitions