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 1t5caD-007J1H-3y for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Oct 2024 03:07:49 +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 1t5cZD-00Bpbv-7l for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Oct 2024 03:06:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t5cZC-00Bpbn-T4 for pgsql-hackers@lists.postgresql.org; Tue, 29 Oct 2024 03:06:47 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t5cZ6-003WKL-9l for pgsql-hackers@postgresql.org; Tue, 29 Oct 2024 03:06:46 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-539fbe22ac0so4999057e87.2 for ; Mon, 28 Oct 2024 20:06:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730171199; x=1730775999; darn=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=wdikdZugwGt5LiHvdv2BNlm3NqwGyQsnrsrn0gG+Cvk=; b=BmrGb3n9TeJ8m/1FVulrIFZd4h74iN7wmIboWhlqJbCw7E3NMd9K9fRnYv1dclz2+I xNJVARnQVF79YPrgwMMATp4MOaC2Etc9a7Q9rinWCAv6KM6f8ZKpeuKSML27QE2fol/c aRzgXpbCrNmqD3ebT62OAhhpXOOFVHYMShMeJ+BrvMAEawO7yTN8IFfVrtB3CTeQ09FF Gcu8qInMTjqG6tJ8jQ/BiFZF+HIE1O/N/gNAXRMPYGlhw/4TojzXcO8+Ban+vBUiUiMY H0fJdirWLFNuBb/WGZV+WTuvdEIJW0yoSGkjt28GcQyMTYqNphxZR8mM+qkwUAOXm9/2 awdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730171199; x=1730775999; 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=wdikdZugwGt5LiHvdv2BNlm3NqwGyQsnrsrn0gG+Cvk=; b=H2fB/bmzaGnsuepwA4GYufENopB4i7+1nEou+MUDEVMZF4hfv/UWQ9eJVD4zwZGbuk R4vUA3Ot2gCOX5KqFBm5vWrcB0d0v5oMfnN39xZGuT1ezXoGbFEhn5wiECZXaMrT4SZu +P6iY0c4Y+A1N+cTyM+93q6l86tNv2jtFpX++gBNVYHvD1CyFnTWI2LCFQO7NWI5DLAT BCKBTHWnA232xbHCMAsZDr/Ub+o4k/HGXfHRbebVOMXll36d5MAb8Mpl3XEdWLT8BUzg CX2SBdKtObb3MZYs6TW0jDShaReoxvV3Euk4ZRnYlR2LcEQXuJpXzQUqBATWVBMkga2T to3w== X-Forwarded-Encrypted: i=1; AJvYcCWehxlFmM5nyYkUhc7xv8a0qCmYODYmdFZLdOnANMS2JcQyQq2rcPMxFm/lJj3o/tT5SoS55HHorbiCQwvq@postgresql.org X-Gm-Message-State: AOJu0Ywu4H97BjLchOL28TpQmjIg1TatcCOqp/NUgNCUtMnVCl4xGedR lDM9/Zjit39P0TTpB5VWlwVSkspjAJLtPnNBjY2yT7DJI5hr8m13U8EH0dWCAIGC2DCimHgOXIr t0byxCJwAC6ZHxEuQKQe6il27jeuYQA== X-Google-Smtp-Source: AGHT+IGguWucDxOnJ3PiCXIp2O6nJs51xwJzZvdBcib6eUr83OSrIgcL095QttkGD5/L5Gjt3rZPswSbQVFC/QEBC7w= X-Received: by 2002:a05:6512:3c96:b0:539:e454:942e with SMTP id 2adb3069b0e04-53b348d21c9mr4927341e87.16.1730171198919; Mon, 28 Oct 2024 20:06:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Rowley Date: Tue, 29 Oct 2024 16:06:25 +1300 Message-ID: Subject: Re: EXPLAIN IndexOnlyScan shows disabled when enable_indexonlyscan=on To: "David G. Johnston" Cc: Melanie Plageman , Pg Hackers , Robert Haas 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 Tue, 29 Oct 2024 at 14:41, David G. Johnston wrote: > > On Mon, Oct 28, 2024 at 3:54=E2=80=AFPM David Rowley wrote: > - Enables or disables the query planner's use of index-scan plan > - types. The default is on. > + Enables or disables the query planner's use of index-scan and > + index-only-scan plan types. The default is on. > + Also see . > > I think the original wording "index-scan plan types" is what is confusing= me. The plural types is turning index-scan plan into a category of plans = rather than the single plan type "index scan". > > Your proposed wording actually (accidentally?) fixes this because now the= plural types actually refers to two individual plan nodes, "index scan" an= d "index-only scan". I can't really vouch for the original wording as I didn't write it. I agree the original use of "types" as a plural is strange and it's not all that clear what that includes. Perhaps it was an attempt to mean index and index-only scans > The hyphenation still reads a bit odd but ok. I'm not sure where the hyphenated form of "index-scan" comes from and I admit that I blindly copied that form when I wrote "index-only-scans". I'd much prefer we used Index Scan and Index Only Scan so it could more easily be matched up to what's shown in EXPLAIN. I don't think it's up to this patch to change that, so I've just copied the existing form. I was also warded off using the node name from EXPLAIN in [1], and on checking the validity of the complaint, it seems valid. > I am ok with this revision (and the patch as a whole) I suppose but I sti= ll feel like something is missing here. Though probably that something wou= ld fit better in an overview page rather than trying to get the settings to= explain all this to the reader. Thanks. I'll go make it happen. It seems worthy of a backpatch because it seems equally as applicable there, plus to maintain consistency. For the part that seems missing... I'm not sure it's a great excuse, but we've often been quite bad at updating the documentation when making changes to the executor or EXPLAIN. Tom fixed a bunch of stuff in 5caa05749 which was outdated. I think if we wanted to try and do a better job of documenting plan choices and EXPLAIN output, we'd need to consider if the said documentation is worth the additional maintenance burden. It might be quite hard to decide that unless someone went and wrote the documentation first so that we could consider it on its own merit. Whoever does that would have to be willing to have the whole work rejected if we decided it wasn't worth the trouble. It seems like a bit of a thankless task and I'm not motivated to do it. Your pain threshold might be higher than mine, however. David [1] https://www.postgresql.org/message-id/ccbe8ab940da76d388af7fc3fd169f1de= df751f6.camel@cybertec.at