pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Vijaykumar Jain <vjain@opentable.com>
To: pgsql-general@postgresql.org >> PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: wal_level logical for streaming replication
Date: Wed, 28 Aug 2019 22:37:34 +0200
Message-ID: <5a8e7fbbc115c9d3f5d06d83c1af80931d445f0c.camel@cybertec.at> (raw)
In-Reply-To: <CAE7uO5j6sMck0c-a-4DzLriY-q-fo_ASXUanDgnOUdBZn92O2w@mail.gmail.com>
References: <CAE7uO5j6sMck0c-a-4DzLriY-q-fo_ASXUanDgnOUdBZn92O2w@mail.gmail.com>

On Wed, 2019-08-28 at 21:44 +0530, Vijaykumar Jain wrote:
> If I change wal_level back to replica, will it corrupt wal? coz it
> will then be having diff information ( r format of data ?)

That's why you have to restart the server when you change that
parameter.  This way, there will be a checkpoint marking the change.

> What is the base reason as to why ddls are not sent via logical
> replication but the hot standby has ddl changes reflected absolutely
> fine ?

Physical streaming replication just replicates the database files,
so it also replicates DDL statements, which are just changes to the
catalog tables.

Basically, anything that can be recovered can be replicated.

Logical replication has to perform "logical decoding", that is,
it has to translate the (physical) WAL information into logical
information (waht row was modified in which table).

So this is much more complicated.  It should be possible in theory,
but nobody has got around to solving the difficulties involved yet.

> and there is one large limitation on large object support for logical
> replication?
> Where can I see the limitation on size or is it just certain data
> types ?

This has nothing to do with the size; I guess the answer is the same as
above.  One proble that I can see immediately is that primary and
standby don't share the same OIDs, yet every large object is identified
by its OID.  So I think this is a fundamental problem that cannot be
solved.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (3+ messages)  latest in thread

Message-ID: <5a8e7fbbc115c9d3f5d06d83c1af80931d445f0c.camel@cybertec.at>
Permalink:  ../5a8e7fbbc115c9d3f5d06d83c1af80931d445f0c.camel@cybertec.at/
Also on:    postgresql.org/message-id/5a8e7fbbc115c9d3f5d06d83c1af80931d445f0c.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, vjain@opentable.com
  Subject: Re: wal_level logical for streaming replication
  In-Reply-To: <5a8e7fbbc115c9d3f5d06d83c1af80931d445f0c.camel@cybertec.at>
  References: <CAE7uO5j6sMck0c-a-4DzLriY-q-fo_ASXUanDgnOUdBZn92O2w@mail.gmail.com> <5a8e7fbbc115c9d3f5d06d83c1af80931d445f0c.camel@cybertec.at>

* 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