Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i30au-000804-Am for pgsql-general@arkaria.postgresql.org; Wed, 28 Aug 2019 16:14:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i30at-00056H-7n for pgsql-general@arkaria.postgresql.org; Wed, 28 Aug 2019 16:14:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i30as-000524-P7 for pgsql-general@lists.postgresql.org; Wed, 28 Aug 2019 16:14:46 +0000 Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i30al-0002J4-36 for pgsql-general@postgresql.org; Wed, 28 Aug 2019 16:14:46 +0000 Received: by mail-yb1-xb34.google.com with SMTP id o82so144527ybg.10 for ; Wed, 28 Aug 2019 09:14:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=opentable.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=OsfRXsfu4SYgk3vGLoJODABrxK74OM3ehAIhtrhGHMM=; b=PvT+s0x0XlsiOK1EjAkoVxQ2rlcAQu3t70aICZHwggF/dnglNSBbGufuEtPshisZPt ouB7f1VIuGo29Rgb1l44v1aLVAn5cpeQLOAKTA2AXy4pkENo7S5H/4JnhLzkgbUL9jjE GgwWo+5x1MxFhTSU5u3ViFtHWUnmy8aR0NiNxaG8C0LlCmc/EUqpPJ1wGFCeG/mvr1Tk WCUzYp3btnF4K4prqMjkUS8Y4lJqjRyZYULrC5y7qiilHfoyd4jr0mkQ/Jbj1mBMYpWu n1PUnlj6c5JgG7cwweoYOzNLeJlcJyHvCuuejdJtLUqrgj0OFgaPol8pghD+DA7IDLEh IMlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OsfRXsfu4SYgk3vGLoJODABrxK74OM3ehAIhtrhGHMM=; b=nSNVNmYHQZGLveYVwIey5WdvZf8KHnAt+xoNmUwJfhTAuUO2NgwQ2Gln16Fp5MrFEF g53GAXEmK0Z4jrO0opwzXLaSPqbzPvhPL0uTXrRf15K6TQPAWDmqMu4dr7mJLua+Xz27 eT8Fgt48dHjlBUQH5Q7nK8S+5C/eh3FwN1fyOXEHkqFy+qRdbQN4vqevNLiLnZLDz1mt DptNutoG2GiLASZ4WXPEeLnTSAUqBh1eA0hjzotz+CQw+jaW+Vl/pNHEVY5rGx1Xz+AF Iu6jo00dtWQZ6GQerJ1lSwFUZq5wxO0bcZTwI2px5QzUxHQNPxb9mS4mP8/argYfLXka IrEg== X-Gm-Message-State: APjAAAUU+FqTXu3S1uVVk1CJKbZGYOlQz7IbUNl6EB0MkxzZJNbM6Q9U /iTgKVPKfxR/AEoymoYt2vgGiK7heiPGmN/o6nCLkkFS X-Google-Smtp-Source: APXvYqydG5Zne6B+P5lnfnm0EephE3OpyNeWYGII190E7l977ZRG5ctIQBQiyC+7YiKqMEzEsDzA/CHhrSPv8RCgRRw= X-Received: by 2002:a25:72c5:: with SMTP id n188mr3379593ybc.328.1567008876316; Wed, 28 Aug 2019 09:14:36 -0700 (PDT) MIME-Version: 1.0 From: Vijaykumar Jain Date: Wed, 28 Aug 2019 21:44:24 +0530 Message-ID: Subject: wal_level logical for streaming replication To: "pgsql-general@postgresql.org >> PG-General Mailing List" Content-Type: multipart/alternative; boundary="0000000000006eeb4905912faf1e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000006eeb4905912faf1e Content-Type: text/plain; charset="UTF-8" Hello Team, wal_level = logical wal_level = replica As per docs, wal_level determines how much information is written to the WAL. The default value is replica, which writes enough data to support WAL archiving and replication, including running read-only queries on a standby server. minimal removes all logging except the information required to recover from a crash or immediate shutdown. Finally, logical adds information necessary to support logical decoding. Each level includes the information logged at all lower levels. This parameter can only be set at server start. I have had a combination where I had to upgrade a server using logical replication and when it was done I had replicas serving read queries of the server with wal level logical. All fine. I have two dumb queries . If I change wal_level back to replica, will it corrupt wal? coz it will then be having diff information ( r format of data ?) 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 ? 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 ? I used this to generate dummy data of in a table of all data types it only 1000 rows and it replicated fine. I could easily stress more on this, but I did not want to do discovery and spread rumours without known references. Appreciate your help as always. Thanks, Vijay -- Regards, Vijay --0000000000006eeb4905912faf1e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Team,

wal_level =3D logical=C2=A0
wal_level =3D repl= ica

As per docs,
wal_= level=C2=A0determines how much = information is written to the WAL. The default value is=C2=A0replica, which writes enough data to support WAL archivi= ng and replication, including running read-only queries on a standby server= .=C2=A0minima= l=C2=A0removes all logging exce= pt the information required to recover from a crash or immediate shutdown. = Finally,=C2=A0logical=C2=A0adds information = necessary to support logical decoding. Each level includes the information = logged at all lower levels. This parameter can only be set at server start.=
I have= had a combination where I had to upgrade a server using logical replicatio= n and when it was done I had replicas serving read queries of the server wi= th wal level logical.
All fine.
I have two dumb queries .

If I change wal_level back to replica, will it corrupt wal?= coz it will then be having diff information ( r format of data ?)
What is the base re= ason as to why ddls are not sent via logical replication but the hot standb= y has ddl changes reflected absolutely fine ?
and there is one large limitation on l= arge object support for logical replication?
Where can I see the limitation on size = or is it just certain data types ?

I used this to generate dummy data of in a table of all d= ata types =C2=A0it only 1000 rows and it replicated fine.
= I could easily stress more o= n this, but I did not want to do discovery and spread rumours without known= references.

Appr= eciate your help as always.

Thanks,
Vijay
--

= Regards,
Vijay
--0000000000006eeb4905912faf1e--