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 1q073T-0003QH-Ee for pgsql-general@arkaria.postgresql.org; Fri, 19 May 2023 20:50: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 1q073S-0002Hg-9h for pgsql-general@arkaria.postgresql.org; Fri, 19 May 2023 20:50:26 +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 1q073R-0002HX-VL for pgsql-general@lists.postgresql.org; Fri, 19 May 2023 20:50:25 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q073L-000jiG-30 for pgsql-general@lists.postgresql.org; Fri, 19 May 2023 20:50:24 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-96f40c19477so385265866b.1 for ; Fri, 19 May 2023 13:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20221208.gappssmtp.com; s=20221208; t=1684529417; x=1687121417; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=mXLGv/f0Z3MFyFbA4TRCL9b/62uoTHl7DP7vuZuvPyw=; b=4D3K2lpUdZIvRRIWKcZvWMK9OlkTmHwU8VDiVEJtzNJU6/oQYzYqMi9soqavEa9IAI 0IgBHxslgaTGcMgaqdAN7e63YnZLSIe8WvhZcxaTgTJANC3zM/CriOPl+XgkYxtxSrNf bBf20WsVu+I5cmGax5JtowXAZ76yDk9TA9GkeBxJ89TQc4bUAP5+KI0xhEQOdRFuvUcf XNipXBpYRrzUsroY20PWcw9Aoqq1wCEeSBl7e4NS2RvpW9dEh8SXh7hqQxBJLAz7syZ9 YHvGBJdbnCv2zS5KxPcte3JmAmQO3V9jQ2P6XZdEU/Ecp9BftXyOWZvSAuh0QcsED0IA 1fFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684529417; x=1687121417; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=mXLGv/f0Z3MFyFbA4TRCL9b/62uoTHl7DP7vuZuvPyw=; b=Y3ceMegHhGOSyLQ7e/ONVYaCu/tGZKYDgx3J75P1B+yK1As1NrP04VdIUzroL9zYVV MDAQN8HfmxXJOSFkcGTvV0O/ZwdtC3ZQfyFoq+88i654gw1nB9KRl/SdhdY/D4EXgCo8 bmoQX3RLcWp+40z5Lx619iCeqCYHyxrfAi0X0sICAc8ECGJ99jUavri/UtZcTOw2ouZv L40x6q75A9eW6/U+hiqdpZBFPF7iJ4LGDDdXcZZozZ5y0eZIddjaVeO57RDiixsAJUgK zK66YAC0ORULW+wb6bgnMPgFXTmWmoNkf69MU8YAR77KjcDa0qQiFNqaeUnMWKgj9g+g /k0A== X-Gm-Message-State: AC+VfDwsf5Cp+cOQVgDt/6yF6rxXMLJE/wUdVrlvs9lTlcNEcoPvx/hV ShF5ilTPYgrmk8AdAIBuVkFKmern9eIvFoLU6kc= X-Google-Smtp-Source: ACHHUZ6SRm2bvCbjmox8QZBYkjKQho0auhYYR/EHuNXuPLhm/L1UdsthzAYpLb3TbDL5vy5wGhMiow== X-Received: by 2002:a17:907:9493:b0:969:e9ec:9a0 with SMTP id dm19-20020a170907949300b00969e9ec09a0mr3098693ejc.77.1684529417529; Fri, 19 May 2023 13:50:17 -0700 (PDT) Received: from localhost.localdomain (62-47-150-178.adsl.highway.telekom.at. [62.47.150.178]) by smtp.gmail.com with ESMTPSA id u25-20020a1709063b9900b009596e7e0dbasm30536ejf.162.2023.05.19.13.50.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 13:50:17 -0700 (PDT) Message-ID: <8f1be0222b943a6fc99e7ef6283bd144d2d3447a.camel@cybertec.at> Subject: Re: Unexpected cross-database vacuum impact with hot_standby_feedback=on From: Laurenz Albe To: Owen Stephens , pgsql-general@lists.postgresql.org Date: Fri, 19 May 2023 22:50:16 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2023-05-18 at 17:34 +0100, Owen Stephens wrote: > We are seeing that vacuum is prevented from cleaning dead tuples by an op= en > transaction in a different database (where both connections are made agai= nst the > primary server) when hot_standby_feedback =3D on but not when it is off. = Is this > cross-database interaction an expected effect of enabling hot_standby_fee= dback, > even if the connections interact only with the primary not the replica? Yes, that's what I would expect. There is only one "backend_xmin" in "pg_stat_replication", which corresponds to the snapshot held by the oldest query in any database on the standby server. Yours, Laurenz Albe