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 1oiI6a-0004vD-CJ for pgsql-general@arkaria.postgresql.org; Tue, 11 Oct 2022 16:27:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oiI6Z-0003SV-1q for pgsql-general@arkaria.postgresql.org; Tue, 11 Oct 2022 16:27:43 +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 1oiI6Y-0003Jj-La for pgsql-general@lists.postgresql.org; Tue, 11 Oct 2022 16:27:42 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiI6W-0001JA-8u for pgsql-general@postgresql.org; Tue, 11 Oct 2022 16:27:41 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 0425E32008C0; Tue, 11 Oct 2022 12:27:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 11 Oct 2022 12:27:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1665505658; x=1665592058; bh=W 1DKLDUt3jPHt3jBoAp6MOL97L+SC2TTTNJpLD8ymKs=; b=l8Ji8fYGeWsT5HUGv 2lkIV35GJNamJBoBffbBEHrx2L0PrE9fxqR+jaBR/TKp8V2aqwL4ZjnLipMrktmM mm+MeClN2K03y1PEbmKtbkNk2eeCqSTSYorojU31h3SFJR6nrvFn0OdeHd6tU0pN gGs41B2FLXT6mOq8yNBlMBaIseepsAi1FdzEozi6UmTQcnj1PTPKnVPsLupMl6zF 83ow8X8GFOmvwrqK7ctnnLWWKgA/ksX13xJvbXlQJhbAIb3OCI6KDZsf/D7h0hW1 +calp6HGrYyvVSZnWkBSeAHt//2DDYYMalPB4J/aS406caMlwSKgmr8Uhl2kkYU4 BLkZA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejiedgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Oct 2022 12:27:38 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 7C16F66; Tue, 11 Oct 2022 18:27:36 +0200 (CEST) Date: Tue, 11 Oct 2022 18:27:36 +0200 From: Alvaro Herrera To: Tom Lane Cc: Guillaume Lelarge , PostgreSQL General Subject: Re: Weird planner issue on a standby Message-ID: <20221011162736.cd2h5ajdbhtwdc4l@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <418848.1665505048@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Oct-11, Tom Lane wrote: > Are there any tables in this query where extremal values of the join > key are likely to be in recently-added or recently-dead rows? Does > VACUUM'ing on the primary help? I remember having an hypothesis, upon getting a report of this exact problem on a customer system once, that it could be due to killtuple not propagating to standbys except by FPIs. I do not remember if we proved that true or not. I do not remember observing that tables were being read, however. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/