pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Both type of replications from a single server?
5+ messages / 2 participants
[nested] [flat]

* Both type of replications from a single server?
@ 2020-10-08 06:13  Srinivasa T N <seenutn@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Srinivasa T N @ 2020-10-08 06:13 UTC (permalink / raw)
  To: PostgreSQL General <pgsql-general@lists.postgresql.org>

Hi All,
   Is it possible to have both type of replications (streaming and logical)
from a single server?
   If I have 3 servers A,B and C, then I want to have streaming replication
from A to B whereas logical replication from A to C.  Is it possible?

Regards,
Seenu.

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Both type of replications from a single server?
@ 2020-10-08 06:49  Michael Paquier <michael@paquier.xyz>
  parent: Srinivasa T N <seenutn@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Michael Paquier @ 2020-10-08 06:49 UTC (permalink / raw)
  To: Srinivasa T N <seenutn@gmail.com>; +Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>

On Thu, Oct 08, 2020 at 11:43:26AM +0530, Srinivasa T N wrote:
>    Is it possible to have both type of replications (streaming and logical)
> from a single server?

Yes.

>    If I have 3 servers A,B and C, then I want to have streaming replication
> from A to B whereas logical replication from A to C.  Is it possible?

And yes.
--
Michael

Attachments:

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

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Both type of replications from a single server?
@ 2020-10-08 07:20  Srinivasa T N <seenutn@gmail.com>
  parent: Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 5+ messages in thread

From: Srinivasa T N @ 2020-10-08 07:20 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>

On Thu, Oct 8, 2020 at 12:19 PM Michael Paquier <michael@paquier.xyz> wrote:

> On Thu, Oct 08, 2020 at 11:43:26AM +0530, Srinivasa T N wrote:
> >    Is it possible to have both type of replications (streaming and
> logical)
> > from a single server?
>
> Yes.
>
> >    If I have 3 servers A,B and C, then I want to have streaming
> replication
> > from A to B whereas logical replication from A to C.  Is it possible?
>
> And yes.
>
My next question is "Are there any setup instructions available for the
same"?

Regards,
Seenu.

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Both type of replications from a single server?
@ 2020-10-08 07:55  Srinivasa T N <seenutn@gmail.com>
  parent: Srinivasa T N <seenutn@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Srinivasa T N @ 2020-10-08 07:55 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>

On Thu, Oct 8, 2020 at 12:50 PM Srinivasa T N <seenutn@gmail.com> wrote:

> On Thu, Oct 8, 2020 at 12:19 PM Michael Paquier <michael@paquier.xyz>
> wrote:
>
>> On Thu, Oct 08, 2020 at 11:43:26AM +0530, Srinivasa T N wrote:
>> >    Is it possible to have both type of replications (streaming and
>> logical)
>> > from a single server?
>>
>> Yes.
>>
>> >    If I have 3 servers A,B and C, then I want to have streaming
>> replication
>> > from A to B whereas logical replication from A to C.  Is it possible?
>>
>> And yes.
>>
> My next question is "Are there any setup instructions available for the
> same"?
>

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?

Regards,
Seenu.

>

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Both type of replications from a single server?
@ 2020-10-08 08:01  Michael Paquier <michael@paquier.xyz>
  parent: Srinivasa T N <seenutn@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Michael Paquier @ 2020-10-08 08:01 UTC (permalink / raw)
  To: Srinivasa T N <seenutn@gmail.com>; +Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>

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

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2020-10-08 08:01 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-10-08 06:13 Both type of replications from a single server? Srinivasa T N <seenutn@gmail.com>
2020-10-08 06:49 ` Michael Paquier <michael@paquier.xyz>
2020-10-08 07:20   ` Srinivasa T N <seenutn@gmail.com>
2020-10-08 07:55     ` Srinivasa T N <seenutn@gmail.com>
2020-10-08 08:01       ` Michael Paquier <michael@paquier.xyz>

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