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 1ulYvB-002d7g-VQ for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Aug 2025 20:15:06 +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 1ulYvA-003cKc-Gt for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Aug 2025 20:15:04 +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 1ulYvA-003cKU-30 for pgsql-hackers@lists.postgresql.org; Mon, 11 Aug 2025 20:15:04 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ulYv7-0004eg-1E for pgsql-hackers@lists.postgresql.org; Mon, 11 Aug 2025 20:15:03 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-3b7825e2775so4268685f8f.2 for ; Mon, 11 Aug 2025 13:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bowt-ie.20230601.gappssmtp.com; s=20230601; t=1754943299; x=1755548099; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rqTPph2hs4NjfGeQ8gzQqCDXdR+7mZSI+J1cT3gJsy0=; b=r8KX58hUwvECcOO9fbSuSt7RsgLiGNocKuRzXyA5lwPsB7gizSLEn+NTYVqLiOpjcv TRokfDD7mqaeaPQbiVaBWvcmJ5gqG/OEj07hU/8RfjZgVMuyMN704KpG2amaXIUexY+m KxWvNHWsW1VaoMxgL3W1RYY0u87xD+T+IDyv0hSg3uEdHtKfAODFkBe8LGNHD9XkQUUh uxqjYBoUodwteiRcGc0K/kTIXrwGbmRVmnf9fWcinlIW5m7EPAGmJlWzsciIjRZdwUE8 eWsVlmmx8VwJ/MWCZV3UzsCg77tdM2AHASBDncB8t9C8fon/MOoej9wHSeeln6ZVSOGI 8e7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754943299; x=1755548099; h=content-transfer-encoding:cc: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=rqTPph2hs4NjfGeQ8gzQqCDXdR+7mZSI+J1cT3gJsy0=; b=gA25RuPZUuzr1PnBVCWqiJfaczbVVR7FI7DyPoq3rB04/2qB3Lzj/jCDfMw4jcBiBL Ac5OGY86fzgFLz/xZGxs0/kIL6Vdsa7+BCULzzfnzqmVjmBCibP7zsTXheZlNAdF6lr+ Mdr4o3Tg3ltIUASDNKdVeb+s6fEO1M2Y+VFY4D577TyOnonjW4Xdjtko3kMc6tONpt35 U7eV10SBWQgCXSaGsVvD5W0LEnvwV25LqDjarcYGxrABakZg2pMZRmq/qFxg6T/2nXmG 1F9r9P7ZYbfIUg96HbLGTH/zED2/Rz5iTnV3MLFD7i6xPzeE7JhqyvBVi8aXvxJzEYwK GOMw== X-Forwarded-Encrypted: i=1; AJvYcCWcaf5hnB4fVfsZ05a80ZNOR7Nc6GPYCJKOigOa+GrDEQJbe6sfnYP+CscOKfQcaZU366nvLUhyjbTnW4YU@lists.postgresql.org X-Gm-Message-State: AOJu0YxZqzhVAMs/wv249PFIgd0QjM3nkw3Q+6MVxZB9Egwd1lYJbHXT vxneNi3tWpkWpRnO0qxxwTyqPucKR0JEAsuF7dvxmXdfZcozku0zFRCsX7J41WVkuWJIhjlTgkM Ie+ZVK+cZYcH1gaLYJGoB3GHzpZDpURbFfMPILZ/KeQ== X-Gm-Gg: ASbGncsriRs2DHaQ7nYjvPxNqUjWQ7zaTs4GLJU5J7I8YpKb5fXJuHF2R7d4TZZ1rK3 RncBvjYgUUgVMJ+cAxmkeWGyWkOl51IAYeNTupB9fBHSF4icevOPNjKmqrl9XjLg78Je8izO3d2 b//4M+odnChr1sZOu196ijjGlJiE3yJnhBcMS3M324nxDXZ0zFl29jxpThgniMGubRRgFeqmsuX xE61H+6+IP/IDGLXsmzREq7PTpN X-Google-Smtp-Source: AGHT+IG4IuxbHKDohBFq++/zh1KSy8YVJi4nhYZ6IlWFtvs0+XaIHfy3B3ANkvgNRqzZpNJ3o6fOSyJjpYpBJy8vOI4= X-Received: by 2002:a05:6000:1acf:b0:3b6:c6b:e4e6 with SMTP id ffacd0b85a97d-3b910fcc914mr873500f8f.11.1754943298697; Mon, 11 Aug 2025 13:14:58 -0700 (PDT) MIME-Version: 1.0 References: <8ed1d326-5c6e-476e-b3fd-30d3da210546@vondra.me> <38b865bd-2ae9-4a94-a788-6e3dc99ccd70@vondra.me> <306fc8c0-c882-4602-86f5-a106b9ace603@vondra.me> <152ea782-5bd4-4435-b021-0ab2da61e63d@vondra.me> <7c2f6350-6fca-4e39-b0a8-8ac735f5d58a@vondra.me> <2e63cadd-2a03-46b1-866e-7ea5d3ffd37f@vondra.me> In-Reply-To: From: Peter Geoghegan Date: Mon, 11 Aug 2025 16:14:31 -0400 X-Gm-Features: Ac12FXzne1c064BbUdZnDi_h0T7ZFXGitP3P-5az2vIm63wSpYPzAv3R7XuSUEE Message-ID: Subject: Re: index prefetching To: Tomas Vondra Cc: Andres Freund , Nazir Bilal Yavuz , Thomas Munro , Robert Haas , Melanie Plageman , PostgreSQL Hackers , Georgios , Konstantin Knizhnik , Dilip Kumar Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Aug 11, 2025 at 10:16=E2=80=AFAM Tomas Vondra wro= te: > Perhaps. For me benchmarks are a way to learn about stuff and better > understand the pros/cons of approaches. It's possible some of the > changes will impact the characteristics, but I doubt it can change the > fundamental differences due to the simple approach being limited to a > single leaf page, etc. I think that we're all now agreed that we want to take the complex patch's approach. ISTM that that development makes comparative benchmarking much less interesting, at least for the time being. IMV we should focus on cleaning up the complex patch, and on closing out at least a few open items. The main thing that I'm personally interested in right now, benchmark-wise, is cases where the complex patch doesn't perform as well as expected when we compare (say) backwards scans to forwards scans with the complex patch. In other words, I'm mostly interested in getting an overall sense of the performance profile of the complex patch -- which has nothing to do with how it performs against the master branch. I'd like to find and debug any weird performance bugs/strange discontinuities in performance. I have a feeling that there are at least a couple of those lurking in the complex patch right now. Once we have some confidence that the overall performance profile of the complex patch "makes sense", we can do more invasive refactoring (while systematically avoiding new regressions for the cases that were fixed). In summary, I think that we should focus on fixing smaller open items for now -- with an emphasis on fixing strange inconsistencies in performance for distinct-though-similar queries (pairs of queries that intuitively seem like they should perform very similarly, but somehow have very different performance). I can't really justify that, but my gut feeling is that that's the best place to focus our efforts for the time being. --=20 Peter Geoghegan