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 1lBgXL-0005Y6-9Q for pgsql-general@arkaria.postgresql.org; Mon, 15 Feb 2021 16:15:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lBgXK-0005o4-75 for pgsql-general@arkaria.postgresql.org; Mon, 15 Feb 2021 16:15:46 +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 1lBgXJ-0005nx-VC for pgsql-general@lists.postgresql.org; Mon, 15 Feb 2021 16:15:45 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lBgXH-0007NI-J0 for pgsql-general@lists.postgresql.org; Mon, 15 Feb 2021 16:15:45 +0000 Received: by mail-ed1-x535.google.com with SMTP id h10so4042226edl.6 for ; Mon, 15 Feb 2021 08:15:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=LByY0wZfi13gTnmPVUtJ50HpLhRPuoytfFGWnDsDvbg=; b=pUHSf50N0M1K3TVII3zTnePDZxEJvgqE03qFSaKZdgaI7eevl8PXJ3CwV7C9S2egFI lnswA6kIljGuOdzE5NZ3KJ64zt98wA8fWvi9xEDDsTdUMVHVG37ug3Js6hOQ3QwPzviB XCO0nfihuoSRq8pFqCye1+IZKU9+XPgF2tFZBnCAuAdMCrE5mZEUaa5Fyj0z83qN1zA0 rtZNXmXFzyK/tAUDjJIP3VynArv4HmPVIaGr8G2mygjApZd1q+rkrHGBUHbE97SDVh4b VDfZqCo3bWkZrfrkuHDkfCb2noY8geCBvugkVSae2vc9t/1fkfHp0RvRjkfA2E5hh57R 51Gw== 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:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=LByY0wZfi13gTnmPVUtJ50HpLhRPuoytfFGWnDsDvbg=; b=IgImbOAgy8Uh3L7nL9JT/7wHmc52o4QxQRQRkQUJTORcNuEqsvTB4luBIphdSjxtyS dejZpqmjtsNruOG6SId35/Y01NuMA5jv6iagQL8nf+tfUByjihqmb54XrXFlG+I1CrKW f5z4O8c8M3HV0SzSdcwhrGpnahZTQIxE9aSeVtIouiz/aejtuS9gtigKufYX2x6Qj2n6 i0q9DJTpMXZk809WvYUZCeNme1NXSeDEkvXJNjPd2DlhuDeEMgZT23Eum7YCivr/NXw0 pRFJBxFuFgAB6h2is7XJDJ8rsbBKXKBOHdmKZ2segdvG2L/wJiWs92n8fHmcPZVm+o3w NEWg== X-Gm-Message-State: AOAM533G2DEIXifGUZxmD1Bs7Ma5wpGmwRE3ZZzMpfLSar4ebOqhrIhu AmsZvkdLmOhaxAGTIBmjxNE9KQ== X-Google-Smtp-Source: ABdhPJwO4x0g+IHnZnU6D9HdL7cbRMKSdzvBf+F49Drn8jO/VTeB5XjpxRqwlZXGktLSmULmvUZb4g== X-Received: by 2002:a05:6402:1c85:: with SMTP id cy5mr16777878edb.379.1613405742629; Mon, 15 Feb 2021 08:15:42 -0800 (PST) Received: from localhost.localdomain (217-149-170-190.nat.highway.telekom.at. [217.149.170.190]) by smtp.gmail.com with ESMTPSA id i4sm10905470eje.90.2021.02.15.08.15.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 08:15:42 -0800 (PST) Message-ID: Subject: Re: MultiXactMemberControlLock contention on a replica From: Laurenz Albe To: Christophe Pettus Cc: "pgsql-generallists.postgresql.org" Date: Mon, 15 Feb 2021 17:15:41 +0100 In-Reply-To: <061BEE02-EA45-4ED5-A9CB-2015D133CA2B@thebuild.com> References: <76AD9A74-E518-4D2F-A4B7-EBB6203530C3@thebuild.com> <99c0f12af81e0370c2caddb75cd8150a1a818dd8.camel@cybertec.at> <061BEE02-EA45-4ED5-A9CB-2015D133CA2B@thebuild.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 2021-02-15 at 08:03 -0800, Christophe Pettus wrote: > On Feb 15, 2021, at 07:47, Laurenz Albe wrote: > > So my guess would be that the difference between primary and standby is not that a > > different number of multixacts are created, but that you need to read them on > > the standby and not on the primary. > > Why does the secondary need to read them? Visibility? Right. I cannot think of any other reason, given that the standby only allows reading. It's just an "xmax", and PostgreSQL needs to read the multixact to figure out if it can see the row or not. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com