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 1i34hK-00027h-BI for pgsql-general@arkaria.postgresql.org; Wed, 28 Aug 2019 20:37:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i34hI-00011r-Vy for pgsql-general@arkaria.postgresql.org; Wed, 28 Aug 2019 20:37:40 +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 1i34hI-00011j-ML for pgsql-general@lists.postgresql.org; Wed, 28 Aug 2019 20:37:40 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i34hF-0005DA-Sq for pgsql-general@postgresql.org; Wed, 28 Aug 2019 20:37:40 +0000 Received: by mail-wm1-x341.google.com with SMTP id o184so1455266wme.3 for ; Wed, 28 Aug 2019 13:37:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=1jiHMNSV+egefPI/lxULMTj28avU6BDZYD1kbLmu7jk=; b=jF08aWMrj4dhqNnuh59aXvb8usF2J8CWr55BHFILeT+d+sA1b0tVgNcO5CDtOVFub0 zg+wIwrVGg6q5jQTGMhpxzlIinZBTeZVDm70j2ROOyfk7zQEwJdQPxfVi2ur6GkvjGAi usuoB8QQ4nfydg69ryytucV7N/NgZ4PLQZSET9LClUzrjUKzVfv2YuNa6sbRHUYVj1Gg ZDnPfEtcldNnQtfW7UluS/dpfhC0dryg/j1eK2Jj7DNAvE+JhSS47C9hcP1Z8zDyJJJd anM7YiFgIgm/WuxOwQWbooPPK/URB9s1l65h8Vfli6GHNyBsgPJBbm5kXBjjPuMoPNzO v1Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=1jiHMNSV+egefPI/lxULMTj28avU6BDZYD1kbLmu7jk=; b=GxAc3+iR/8eIOkZAM5zs7tAqv6uxM4THBBS4Kbt36rm5N7TZqpGZi7NrTeSJ/9/Q/A nYsVU9b9LC4cRMLFIyHIfdh4FaQmGz2Rt/c3Mm8UuRuZ66SfpUKNKfLe99plwSFvGmrF U7O5di1NCHSIrM+fpQbcIgCFV3isVAz9crFn0YmbuTz49WINUpobDgNr7x5rpPNfnser v8yauwvTklg2a7a70m1eXRqLocNu5cuAwweKyeJdslUqh8+itIHniYzOf3JO47zPvUFo nRlsrItmnC959tHExZsHPORAPRTmvlk1d1mLqZe47btHkwmNdKKN5NvdWPh/VxAkvVRP kzLQ== X-Gm-Message-State: APjAAAULqVM8AiIAOlYBqd3g+ytLLk6Wk3M4IsvsfI+vfk4JeJoE5z3a Fqx2fnD1z7KttKJx04C2cOyElQ== X-Google-Smtp-Source: APXvYqy3sPuogUx8nD4/A1cF/z8BywAbsy/u/zyhOxY/hInyry44+Jsfre3uCOA0xVDoe7CJrDVOWw== X-Received: by 2002:a1c:7c1a:: with SMTP id x26mr7579712wmc.115.1567024655611; Wed, 28 Aug 2019 13:37:35 -0700 (PDT) Received: from localhost.localdomain (217-149-172-217.nat.highway.telekom.at. [217.149.172.217]) by smtp.gmail.com with ESMTPSA id c9sm161138wrv.40.2019.08.28.13.37.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2019 13:37:35 -0700 (PDT) Message-ID: <5a8e7fbbc115c9d3f5d06d83c1af80931d445f0c.camel@cybertec.at> Subject: Re: wal_level logical for streaming replication From: Laurenz Albe To: Vijaykumar Jain , "pgsql-general@postgresql.org >> PG-General Mailing List" Date: Wed, 28 Aug 2019 22:37:34 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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