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 1uAE05-00CR6Z-Tk for pgsql-committers@arkaria.postgresql.org; Wed, 30 Apr 2025 20:25:50 +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 1uAE03-00GKVn-5m for pgsql-committers@arkaria.postgresql.org; Wed, 30 Apr 2025 20:25:48 +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 1uAE02-00GKVf-O4 for pgsql-committers@lists.postgresql.org; Wed, 30 Apr 2025 20:25:47 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uAE00-000PLB-2a for pgsql-committers@lists.postgresql.org; Wed, 30 Apr 2025 20:25:46 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-39129fc51f8so155265f8f.0 for ; Wed, 30 Apr 2025 13:25:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bowt-ie.20230601.gappssmtp.com; s=20230601; t=1746044743; x=1746649543; 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=obCmaD/QhVg60WmhvLd4Bpmw5XFPam/yinhQxJuNwcU=; b=E9FVsHXC+E2OMORo5AEt3f9Megju765DxZ70bBzPMah5ZQPllGwoeubf9VKG5pna1O gGVTOpqjm2qnkA59Xjk2idbdCREhZlZTBgWCXdbM1Vl72i1W+6DPvBdj3L2UkfXuWb8a Ks3gZ4RaPQdbEAATV90FgzAZJ6B9ZyalxNoSgxJyyrA+JIoho5/UvHw0C6KCAHE31Wp0 VSTczwUSD8THq7auhsYl3O+EQrBHrX+3LE/u1tDdrjd+Vw0i9ETUtLOHkdPBOHMNFZCb jOymuVC51C3pMXaJ2TEWaoxXi5+UhtmoW9KD6Thcs8roHjeWG2WlGx2NVGBDjt4ap3+g /Ugg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746044743; x=1746649543; 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=obCmaD/QhVg60WmhvLd4Bpmw5XFPam/yinhQxJuNwcU=; b=UqgSFklmhDxW9lH1H01We+KwCuU1fJYNrgqD8nyfn6Y59M2RE43U5HY7YPuTJxTCfd 7mF7S+Z04ZhcqvC3gEh7rz+i3dwJJRG66zi3JMsA6Xj3YUq8lvzkf4+0SghD7Hbj3lL9 y2gTRoHB436B2v99V0fL679mQpsmi7y7OEq39l9GtALv9hpIgLxKoGEFjcMS9ETjdg3B 7wkP7hStZjjOuVP8inzDajkfXSNrxRbkwlROVUlSRbOPja+dQqqdRoIvoZflycRbnnqa f/aWdXNOAj+TzH8wbvfZwJEqEIv8J9eVwc+dEzvdhwz+6PtnRaLF0hbqEBLtm0dRI4WR +esg== X-Forwarded-Encrypted: i=1; AJvYcCWi7R1/NPAodrsqQ8Xi0Xgaql6jyaa7MfZbxB93rbseq7Jm6+CyKCQT3/aE2Tt0BQXpGeAVimzWDuybLo4jj6Gp@lists.postgresql.org X-Gm-Message-State: AOJu0YzFMzCkcggicd2cni5MDumIgzB0NQHy+cbQhusWrh0m2JGKY1N7 7HQQey5uE+YFFF/NXiZeJTDuZj5ySGFk1z46KcRsH2w8kcKSZXMKm3LgSt7HR3pOpd0UdX6MLxG H+8uonQ+wfaRJtYMqSXjAS64rajukh2sPhirhBg== X-Gm-Gg: ASbGncuPIGJtOF83gr2+jTi6uVw46hmdY4nSwmedGUEIrL7KB3raCQVogOnBe83p2Qp JsSX9Rpsqe4XSd8YHCWBUGc5J+CMfVx9dHqIN7w3h4Hz4KdX379kBB50eQDSqaL17aQGk/CPUzx OjdEOavrHIuf6TkbRTqMhUIQ== X-Google-Smtp-Source: AGHT+IHpZfbcDp+ef6YPTg+WuS/30A8QwjJuWcyp2uRcWMx53JbzHmxBqvE9bk53G4Vk1ANlKQSBipOsIJzeQetKGqE= X-Received: by 2002:a05:6000:4201:b0:3a0:831d:267c with SMTP id ffacd0b85a97d-3a08f7611e9mr4179168f8f.18.1746044743225; Wed, 30 Apr 2025 13:25:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Peter Geoghegan Date: Wed, 30 Apr 2025 16:25:17 -0400 X-Gm-Features: ATxdqUE0P6EGJie_qZ6gcXszTioNJAu4CzqujWvFo4SvGTwMV0F8Buu3YM3rmjo Message-ID: Subject: Re: pgsql: Improve nbtree skip scan primitive scan scheduling. To: Mark Dilger Cc: Matthias van de Meent , pgsql-committers@lists.postgresql.org 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 Wed, Apr 30, 2025 at 4:11=E2=80=AFPM Mark Dilger wrote: > A similar assertion can still be reached on HEAD using the attached (rath= er contrived) regression test as of f60420cff66a9089a9b431f9c07f4a29aae4990= a: I independently found the same bug just a few hours ago, using an enhanced version of my python fuzzing script (posted to the main skip scan thread) that now performs backwards scans. I'm not at all surprised to see that your repro also uses ORDER BY ... DESC. Would you post to that other thread going forward, rather than posting to this -committers thread? I'm going to talk about this on the main skip scan -hackers thread, when I have a proper fix. I already have a fix for the issue that you reported, but there seems to be an independent remaining issue with backwards scans that I haven't quite got to the bottom of just yet. Thanks --=20 Peter Geoghegan