Re: libpq options - Mailing list pgsql-docs

From Petr Jelinek
Subject Re: libpq options
Date
Msg-id e2c073c5-8ed6-5cdb-e390-678a2026a4f1@2ndquadrant.com
Whole thread Raw
In response to Re: libpq options  (Andres Freund <andres@anarazel.de>)
List 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 by date:

Previous
From: Greg k
Date:
Subject: Postgres 10 and the pg_ctl "--wait" option
Next
From: Magnus Hagander
Date:
Subject: Re: libpq options