pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Luca Ferrari <fluca1978@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: session_replication_role meaning?
Date: Tue, 30 Jan 2018 23:19:55 -0500
Message-ID: <798351cb-5023-db40-8d7c-07387d4ce389@2ndquadrant.com> (raw)
In-Reply-To: <CAKoxK+7qePHxaFxY3FUxNiTL98tR-LShmPQOoryr7RrH=LFx6A@mail.gmail.com>
References: <CAKoxK+7qePHxaFxY3FUxNiTL98tR-LShmPQOoryr7RrH=LFx6A@mail.gmail.com>

On 1/30/18 02:48, Luca Ferrari wrote:
> Hi all,
> now this should be trivial, but I cannot udnerstand what is the
> purpose of session_replication_role
> <https://www.postgresql.org/docs/10/static/runtime-config-client.html#GUC-SESSION-REPLICATION-ROLE;
> or better, when I should use it in a way different from 'origin'.

The documentation was recently updated in the master branch, so maybe
you will find this explanation a bit more detailed:
https://www.postgresql.org/docs/devel/static/runtime-config-client.html#GUC-SESSION-REPLICATION-ROLE

> I've a logical replication setup and both master and client
> connections default to 'origin', so it has to be specified manually.

The global setting for an instance is not affected by whether you are
replicating.  The replication system is supposed to set the parameter
when it is applying changes, e.g.,
https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/backend/replication/logical/worker....

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (6+ messages)  latest in thread

Message-ID: <798351cb-5023-db40-8d7c-07387d4ce389@2ndquadrant.com>
Permalink:  ../798351cb-5023-db40-8d7c-07387d4ce389@2ndquadrant.com/
Also on:    postgresql.org/message-id/798351cb-5023-db40-8d7c-07387d4ce389@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, fluca1978@gmail.com
  Subject: Re: session_replication_role meaning?
  In-Reply-To: <798351cb-5023-db40-8d7c-07387d4ce389@2ndquadrant.com>
  References: <CAKoxK+7qePHxaFxY3FUxNiTL98tR-LShmPQOoryr7RrH=LFx6A@mail.gmail.com> <798351cb-5023-db40-8d7c-07387d4ce389@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox