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 1tk8nC-000UjT-7g for pgsql-general@arkaria.postgresql.org; Mon, 17 Feb 2025 21:36:42 +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 1tk8nA-003V0M-Jp for pgsql-general@arkaria.postgresql.org; Mon, 17 Feb 2025 21:36:40 +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 1tk8nA-003V0E-99 for pgsql-general@lists.postgresql.org; Mon, 17 Feb 2025 21:36:40 +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 1tk8n8-001OLX-27 for pgsql-general@postgresql.org; Mon, 17 Feb 2025 21:36:39 +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 51HLabh4931648; Mon, 17 Feb 2025 16:36:37 -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: Comments: In-reply-to Ron Johnson message dated "Mon, 17 Feb 2025 15:32:47 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <931646.1739828197.1@sss.pgh.pa.us> Date: Mon, 17 Feb 2025 16:36:37 -0500 Message-ID: <931647.1739828197@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ron Johnson writes: > The bigint "id" column in "mytbl" is populated from a sequence, and so is > monotonically increasing: the newest records will have the biggest id > values. > The table also has a bytea column that averages about 100KB. > Loading 200K rows is more than 200MB. I expected this "prewarm" statement > to take much longer than 1/2 second. Am I still in the dark ages of > computer speed, or is this statement not doing what I hope it's doing? It's not pulling in the TOAST storage where the bytea column lives. (pg_prewarm wouldn't have either, without special pushups.) regards, tom lane