Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tk91H-000aR9-RY for pgsql-general@arkaria.postgresql.org; Mon, 17 Feb 2025 21:51:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tk91G-003ioU-Ao for pgsql-general@arkaria.postgresql.org; Mon, 17 Feb 2025 21:51:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tk91F-003ioM-WF for pgsql-general@lists.postgresql.org; Mon, 17 Feb 2025 21:51:14 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tk91E-001OTT-16 for pgsql-general@postgresql.org; Mon, 17 Feb 2025 21:51:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 51HLpAYq933146; Mon, 17 Feb 2025 16:51:10 -0500 From: Tom Lane To: Ron Johnson cc: pgsql-general Subject: Re: Loading the latest N rows into the cache seems way too fast. In-reply-to: References: <931647.1739828197@sss.pgh.pa.us> Comments: In-reply-to Ron Johnson message dated "Mon, 17 Feb 2025 16:40:56 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <933144.1739829070.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 17 Feb 2025 16:51:10 -0500 Message-ID: <933145.1739829070@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ron Johnson writes: > On Mon, Feb 17, 2025 at 4:36 PM Tom Lane wrote: >> It's not pulling in the TOAST storage where the bytea column lives. >> (pg_prewarm wouldn't have either, without special pushups.) > Puzzling, since I ran "PERFORM *". What if I explicitly mentioned the > bytea column's name? You'd have to do something that actually used the column's value, perhaps "md5(byteacol)" or such. (The obvious candidate would be length(), but I think that is optimized to not fetch or decompress the whole value.) regards, tom lane