pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Srinivasa T N <seenutn@gmail.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: Both type of replications from a single server?
Date: Thu, 8 Oct 2020 17:01:02 +0900
Message-ID: <20201008080102.GE3457@paquier.xyz> (raw)
In-Reply-To: <CAFruNdcqEwkHa+wXqmRyssB+nudmUCtj3g84qhmnWVhL4E44tw@mail.gmail.com>
References: <CAFruNddpJU91e7yEh5NmBV--J07FTUCo62Tx-PrY2MV0czagwQ@mail.gmail.com>
	<20201008064923.GD3457@paquier.xyz>
	<CAFruNdds602fbmtLQ113NCWOYujnVoiuBMN8AORUxS8gHWtYuA@mail.gmail.com>
	<CAFruNdcqEwkHa+wXqmRyssB+nudmUCtj3g84qhmnWVhL4E44tw@mail.gmail.com>

On Thu, Oct 08, 2020 at 01:25:14PM +0530, Srinivasa T N wrote:
> For streaming replication, I need to set wal_level to replica in A whereas
> for logical_replication we need to set wal_level to replica in the same A
> server.  So, was wondering how to go about?

A logical replica needs wal_level = logical, a setting that also
allows to do streaming replication for a physical replica.  But the
opposite is not true, as using wal_level = replica will not work for
logical replicas.  So, assuming that you want to have both logical and
physical replicas that replicate from the same source server, you need
to set wal_level to logical on the primary server because it is a
system-wide configuration.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (5+ messages)

Message-ID: <20201008080102.GE3457@paquier.xyz>
Permalink:  ../20201008080102.GE3457@paquier.xyz/
Also on:    postgresql.org/message-id/20201008080102.GE3457@paquier.xyz

 · 

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: michael@paquier.xyz, seenutn@gmail.com
  Subject: Re: Both type of replications from a single server?
  In-Reply-To: <20201008080102.GE3457@paquier.xyz>
  References: <CAFruNddpJU91e7yEh5NmBV--J07FTUCo62Tx-PrY2MV0czagwQ@mail.gmail.com> <20201008064923.GD3457@paquier.xyz> <CAFruNdds602fbmtLQ113NCWOYujnVoiuBMN8AORUxS8gHWtYuA@mail.gmail.com> <CAFruNdcqEwkHa+wXqmRyssB+nudmUCtj3g84qhmnWVhL4E44tw@mail.gmail.com> <20201008080102.GE3457@paquier.xyz>

* 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