Re: libpq options

Поиск
Список
Период
Сортировка
От Petr Jelinek
Тема Re: libpq options
Дата
Msg-id e2c073c5-8ed6-5cdb-e390-678a2026a4f1@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: libpq options  (Andres Freund <andres@anarazel.de>)
Список pgsql-docs
On 01/03/18 10:35, Andres Freund wrote:
> On 2017-11-25 19:05:54 +0900, Michael Paquier wrote:
>> +     <varlistentry id="libpq-connect-replication" xreflabel="replication">
>> +      <term><literal>replication</literal></term>
>> +      <listitem>
>> +      <para>
>> +       This option determines if a backend should use the replication
>> +       protocol.
> 
> "should"? The backend will, and the client will have to do so as well.
> 

I think so as well.

> 
>> A Boolean value of <literal>true</literal> tells the backend
>> +       to go into walsender mode, wherein a small set of replication commands
>> +       can be issued instead of SQL statements.
> 
> This actually is wrong now I think. Petr?
> 

If the replication is true, we don't have database connection so only
replication commands can be executed.

SQL commands work when replication is set to database.

-- 
  Petr Jelinek                  http://www.2ndQuadrant.com/
  PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Greg k
Дата:
Сообщение: Postgres 10 and the pg_ctl "--wait" option
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: libpq options