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 1mxLml-0000mo-Gm for pgsql-general@arkaria.postgresql.org; Wed, 15 Dec 2021 04:20:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mxLmk-0004kn-Ed for pgsql-general@arkaria.postgresql.org; Wed, 15 Dec 2021 04:20:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxLmk-0004kY-3l for pgsql-general@lists.postgresql.org; Wed, 15 Dec 2021 04:20:58 +0000 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mxLmh-0005e7-Bd for pgsql-general@lists.postgresql.org; Wed, 15 Dec 2021 04:20:56 +0000 Received: by mail-qt1-x82c.google.com with SMTP id v22so20596496qtx.8 for ; Tue, 14 Dec 2021 20:20:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=IHe0suwky+wy8sQjUUXz/mTXC1q0B0LDGo2WUixsRgs=; b=FlA6NQWpIlotE0cP+eEsgT9UVtGP3LqCVKyWRejcx/hJARihFO3zYP5MpxdW6Pj8gv s14BQxJCa5/JyOToyVpfSc6CrTtwz++Qdd/h4NnxlSnb1SbNMsoKv1rHFBXbTagtWXZI bmLz8JSDpW+3cwOPnj2OsFwvQHtuMG437pXRGQ1kqRc+Kmrf9qb743qYV/VXYaXzWKmc 4nHRBswAocbZDiXi04Nn7nyBqhSSV0knOD5PaARA7VPc5ApQy0rwnF+HlVmudcyUHui3 GUYVWRZLQ8Htk16fI6rVwVr5QDNSo5QoP4lsiWnd9UQw0XBM0JbO8MiFOnZHn3J0odjA m2zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=IHe0suwky+wy8sQjUUXz/mTXC1q0B0LDGo2WUixsRgs=; b=6EUl6ZfqvaYxJ4lLmRqqSpfrWKyia1n8VPVXwvVyKFLVCPooUdWidubIl9Dl8JEr6v 4sHfxCbqjq9bVZIchO8L10hl8KXADDXDNv+X88Usax8ZYcoeAWbFw16oks/rQMs1Ec+O q3oUYdL/sPQjpBevQuLxk+H910n4cqrhY/dIUUecX5bLMn9lBE+akHvoHVTdf9xBBxge GOwhosmX/prDJQRjP+d88dUcjsP00Dck5QliLqCq2q0NV96r/M+i/aBpfTdad0b8Qn47 LF0u6qP6rkMg2wAUZiBSXN8HlocIKbHSHMeO+zyNOZOSvbVcwIbtruB0FkvkryMTpsyY YcAg== X-Gm-Message-State: AOAM533KduHGu8NjOBWy+bM4Ah8PS/X4r4rJqBTVh4k4/6wc8isRYJlW Lz7idgSr9coNQeVZ1npDQKM= X-Google-Smtp-Source: ABdhPJwV4nWaQam8GHIv5CF2FggWxS6/9IixTMz/RKfBYGtOnuDjhYUPzM+QrYR0rUeXGTqpt31fZQ== X-Received: by 2002:a05:622a:155:: with SMTP id v21mr9872288qtw.523.1639542054367; Tue, 14 Dec 2021 20:20:54 -0800 (PST) Received: from smtpclient.apple (r186-49-58-186.dialup.adsl.anteldata.net.uy. [186.49.58.186]) by smtp.gmail.com with ESMTPSA id q30sm475824qkj.3.2021.12.14.20.20.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Dec 2021 20:20:53 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Subject: Re: Reindex "locked" standby database From: =?utf-8?B?TWFydMOtbiBGZXJuw6FuZGV6?= In-Reply-To: <75898e59-aa59-0293-1398-b9d1bcf70a3b@gmail.com> Date: Wed, 15 Dec 2021 01:20:51 -0300 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <35C0351B-BB50-413E-9F7C-9BECB8A42752@gmail.com> References: <6C5D7205-487C-4AED-93AC-FBE042F51FC9@gmail.com> <75898e59-aa59-0293-1398-b9d1bcf70a3b@gmail.com> To: Mladen Gogala X-Mailer: Apple Mail (2.3693.20.0.1.32) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 15 Dec 2021, at 00:52, Mladen Gogala = wrote: >=20 > On 12/14/21 22:37, Michael Paquier wrote: >> You are referring to the startup process that replays WAL, right? >> Without having an idea about the type of workload your primary and/or >> standbys are facing, as well as an idea of the configuration you are >> using on both (hot_standby_feedback for one), I have no direct idea, >> but that could be a conflict caused by a concurrent vacuum. >=20 > Hi Michael, >=20 > I am preparing for a standby deployment. I don't have a standby yet = and, therefore, I don't have any standby problems. Would it be advisable = to turn vacuum off on the standby? Applying WAL will also, in theory, = populate the statistics which is also held in the database blocks. Take this with grain of salt since I=E2=80=99m far from being an expert = :) , just trying to help. To my knowledge, assuming you would be running = a physical standby, vacuum operations wouldn=E2=80=99t run there, only = in the primary. Changes would get propagated via physical replication to = your standby (blocks that change due to vacuuming on the primary).=20 Hope that helps. >=20 > Regards >=20 > --=20 > Mladen Gogala > Database Consultant > Tel: (347) 321-1217 > https://dbwhisperer.wordpress.com >=20 >=20 >=20