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
>> + 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