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 1tk8rZ-000VRK-31 for pgsql-general@arkaria.postgresql.org; Mon, 17 Feb 2025 21:41:13 +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 1tk8rW-003ZEY-QZ for pgsql-general@arkaria.postgresql.org; Mon, 17 Feb 2025 21:41:10 +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 1tk8rW-003ZEG-Fc for pgsql-general@lists.postgresql.org; Mon, 17 Feb 2025 21:41:10 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tk8rU-001OO3-2H for pgsql-general@postgresql.org; Mon, 17 Feb 2025 21:41:09 +0000 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-7272f1de42fso173359a34.1 for ; Mon, 17 Feb 2025 13:41:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739828468; x=1740433268; darn=postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=6P9azFLRZKVGq20DpJLeohnR6izUUbLy1ExoOC1pyOs=; b=MHWi//bnpBw/Vb7W6nJbYpYx3f3WR1DyCE3C+nbg+/VauODD24WdmKrEA5P22//9SD akScVIZKZN8z6QQxppetmpwXVDUMWiAtSfUfbAcsB6UVvDIK2quiu8L9yNUfzqradhbO j4RnL7BSMiT9jdDPkfFwpOTxQizrCjPiAbgets6h+xOXGIIkKCg74FqFsTU7SEy22Als zikXndwhrleU6YRETYCSXoJnQntT2Rs2Tc3y/+uC/j6QO0XQQNxBA180Is9nptcZUiZw iqbytrIxLz7+anW9SIL9nEvK7KUHrgpg4eO2RTTBm7V860rQUFCF7gESp2op22g860EY hzYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739828468; x=1740433268; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6P9azFLRZKVGq20DpJLeohnR6izUUbLy1ExoOC1pyOs=; b=uJ7BAruIorD/MArCLcHoNx7N8HXg3Kr5W4Bc9rTESO2WD2jYh4/6kDaRKQ3xYdmRnA KtTBeLdNZv+kJ1Z9hSaEA3gde1bmIEoOOHH5484jt5cGEqiJFOidYqya4OUIfsXP3mXf eqtYWtqhs7Qpz1RKEkgw2TOT2br3LL8R8Ax7bCovAjswC2UJt9Qfght0Jyris/dUgeJc kcBngYczuD2f9arvdmI2ji0ZMgoC2e88SYe1lTvknxafU/OM7SQG6HWXspnkC4ZtiaS5 NHEFoLZkFxEYbdAlmSbLbt19zj1iNTbvCORFzDYjIe+9yHgzmwuSbMT5ECXcA9exd9qR lWGQ== X-Gm-Message-State: AOJu0Yx4zJZLleYWqCLup6aM3niDr3m9R8MJdteaS1jE9mNLeY9PvmC4 IXRZ3Oo0omMGm9ocjvwaoXAcvs07yIkpnPRgkdXdosDv0wLVJ/1MTX7jBT7zbXtlKa1aJukrib7 lJWYMS7zmUokE6wNI/ZId3M0V5lPy0Q== X-Gm-Gg: ASbGncvb+eTV9qN9gt6SveKA1pdEXrmqLubP1+XeB/Z+9kgofoQNCh8HEGel2m24xK/ tD1uwmuy6uQHZ5+td6Hsr/jZtywTb9jfhcEPP6OABYwGn/BPvv04pN+DGjyroa/mYkeaAPzSv0A == X-Google-Smtp-Source: AGHT+IEGr/ng40GB78C9J80kqkqPRZHsIxLE1VbyeOzDhY3Gg9MSyfhngCqjy42SWkUo01BwgYFkxNRVli4cXf9IE7M= X-Received: by 2002:a05:6830:927:b0:71e:4fc:6ef6 with SMTP id 46e09a7af769-72712043885mr7302431a34.12.1739828467830; Mon, 17 Feb 2025 13:41:07 -0800 (PST) MIME-Version: 1.0 References: <931647.1739828197@sss.pgh.pa.us> In-Reply-To: <931647.1739828197@sss.pgh.pa.us> From: Ron Johnson Date: Mon, 17 Feb 2025 16:40:56 -0500 X-Gm-Features: AWEUYZlIsDbty_FwFu1WP_y23vnXhfN8A7q3kyC67gXUmA6PSpyqBxHbFlCRbYo Message-ID: Subject: Re: Loading the latest N rows into the cache seems way too fast. To: pgsql-general Content-Type: multipart/alternative; boundary="000000000000cb975d062e5d6159" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000cb975d062e5d6159 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 17, 2025 at 4:36=E2=80=AFPM Tom Lane wrote: > 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.) > Puzzling, since I ran "PERFORM *". What if I explicitly mentioned the bytea column's name? --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --000000000000cb975d062e5d6159 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Feb 17, 2025 at 4:36=E2=80=AFPM T= om Lane <tgl@sss.pgh.pa.us> = wrote:
Ron Johnson <ronljohnsonjr@gmail.com> write= s:
> The bigint "id" column in "mytbl" is populated fro= m a sequence, and so is
> monotonically increasing: the newest records will have the biggest id<= br> > values.
> The table also has a bytea column that averages about 100KB.

> Loading 200K rows is more than 200MB.=C2=A0 I expected this "prew= arm" statement
> to take much longer than 1/2 second.=C2=A0 Am I still in the dark ages= of
> computer speed, or is this statement not doing what I hope it's do= ing?

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 *".=C2=A0= What if I explicitly=C2=A0mentioned the bytea column's=C2=A0name?

--
=
Death to <Re= dacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
--000000000000cb975d062e5d6159--