Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opkxj-0002IA-41 for pgsql-admin@arkaria.postgresql.org; Tue, 01 Nov 2022 06:41:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1opkxg-00061m-7q for pgsql-admin@arkaria.postgresql.org; Tue, 01 Nov 2022 06:41:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opkxf-00061c-Nb for pgsql-admin@lists.postgresql.org; Tue, 01 Nov 2022 06:41:23 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1opkxW-0000xP-PP for pgsql-admin@lists.postgresql.org; Tue, 01 Nov 2022 06:41:22 +0000 Received: by mail-wr1-x429.google.com with SMTP id l14so18884174wrw.2 for ; Mon, 31 Oct 2022 23:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=AOoa9aqUUJnTE2xBqiyPmEZ8W4MUOAA/c7RHQZ9HIBA=; b=WSUROnag1tzJMwq7BO0ANKxBo+0ww1Un+zz4AIzkMKfLjjvAa3QGTpYmPG20Lz2Vfj hdjWIFlYOqYmt+KykKC4hqKlx2iLUNhTBQ53imqzThL6gHldtAbM6/2q60T+9xpXOvKo KYDEZTYu+o2O3HBJNy7vhAeqtVXEeGDAGK1gmOUkbOeHfWpmvI5GB7NWXQPAYgDpFg9I HI9M1AExu8q0z/E+I3kg4kkhoDQNmqsWhDdm6WrPUc37m840H4eh0WcQPUVqnA2bYyy1 2bt/gA580XbAIxQ50wWL3cWBJepuojNKzLXqlpEpsd5deMswL4hdaMZdFdywGTjSQdlq zeSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=AOoa9aqUUJnTE2xBqiyPmEZ8W4MUOAA/c7RHQZ9HIBA=; b=PP0pEGdmyg0psY+Pjx3LeO1SbioCm1LIyTwutH/mGzzZs52jLJUJVBpeo3ya746cBL xq6DyEvfKdQo5wj6nGthnJcASzNm/Xk/0Ok/FxWsL8LXtznbPhWuUMIOSRZcD3VlGXDQ CoXOrPp5CNZ6RNbOWCYJJPTtEmVlI6YqBcpLpuat7Afjhuaqnnr37kU/bQrkEtlnU/9U ThUTTlHj9jj2abp07S6m2rfjheuy80ofdSaOVJKK42eApl1BieOqcINBzSXiysSd4a2a BY8kdwe/VZPWQQJB5rd10Ptb64RZ61K2rdvisPO26w6yKy0Nhc27J2kzKUMuR8JhctaW PMTQ== X-Gm-Message-State: ACrzQf2ED3kjlMTLD8baitlvU8OdV3KDe2q0uyHiQBoKh/sj/ohWsP52 tMNsNV6WJdC0LR+fs662WZM53w== X-Google-Smtp-Source: AMsMyM71LtgVXaHt8LEYJm4MqFQDdoFPODgNnbBqju1I0+2Babj0RTiFiZBWnprobZoE3/Ms+E3LPA== X-Received: by 2002:a05:6000:614:b0:236:747d:47d5 with SMTP id bn20-20020a056000061400b00236747d47d5mr10528592wrb.457.1667284872727; Mon, 31 Oct 2022 23:41:12 -0700 (PDT) Received: from localhost.localdomain (178-190-182-20.adsl.highway.telekom.at. [178.190.182.20]) by smtp.gmail.com with ESMTPSA id m62-20020a1c2641000000b003cf47556f21sm9442179wmm.2.2022.10.31.23.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 23:41:12 -0700 (PDT) Message-ID: <88faef33e966796226022d6e7f3e32ad6c59fcfd.camel@cybertec.at> Subject: Re: WAL Replication query From: Laurenz Albe To: KK CHN , pgsql-admin@lists.postgresql.org Date: Tue, 01 Nov 2022 07:41:11 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2022-11-01 at 11:25 +0530, KK CHN wrote: > I am  trying  WAL replication,the setup is working  with a primary and Standby server. > > Query is  :   When the primary crashes  due an unforeseen reason, > what may happen to the uncommitted transactions at primary ? Their effects remain invisible.    > Those  won't replicate to the standby right ? They may be replicated, but their effects will remain invisible there too. > How much data loss occurs in this case ? Data loss? I don't understand. There is no data loss with replication. If an incomplete transaction is rolled back, that is no data loss. > What is the mechanism to overcome this uncommitted transaction loss due to primary > server crash which is not   replicated to the standby  server ? I don't understand. Are you perhaps talking about failover? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com