Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iM89z-0006rK-55 for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Oct 2019 10:10:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iM88y-0000mx-MK for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Oct 2019 10:09:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iM2FN-0007It-8F for pgsql-bugs@lists.postgresql.org; Sun, 20 Oct 2019 03:51:13 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iM2FJ-000236-74 for pgsql-bugs@lists.postgresql.org; Sun, 20 Oct 2019 03:51:12 +0000 Received: by mail-qk1-x741.google.com with SMTP id a194so5022060qkg.10 for ; Sat, 19 Oct 2019 20:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=jjn966KPdzL06q0Symdlcat0S98DaWyeF27amKosgb8=; b=bNHTE27k9rGI2f77qemcj50fLEZUykhTcLkVkrgapEvXoy2kkfmJu3nYKa0X4buYUO h1bE9YuowaXYMreElWnmQjp/s5lsxA9QjwwVBKQNDfjtZYQNOZHrDE3kzvSS7b5VWCIo 9nTAVjJ8DzkuRzi6pP+wxUAg/wQchvI356pbAiaSYyDVNQs3QiRnQrUdd5WIFdx4R6Iq QzMs4n2ChB5ORsi2vPyhZ8Fq0Ixo7C9ziX0vLY5aE4cYYkiyQ/XQdtFIexWbrPUJQUA6 hEOZwEyQk/nDhz1J6NDO+D0blWF1JQbfLkDbWeyH/FBtknUvjGRItMPgXPMQF4iFu9o6 TGEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=jjn966KPdzL06q0Symdlcat0S98DaWyeF27amKosgb8=; b=pg7fe85RTHaLr0vI2gVhCVdQn896tuyVKrDdhRtFywjeQpNfmaAK4+hi17n4EA8NmN mtIKMaBpQaofrfMOMSyxoBEvrAgdZC80rBr2dAyviGnrz1dlPK4YfEvQwuIID2R/YYnp CvikV3jKkqJRTgr8xqEBIW0ckcxTFj1fpzB1EQZhtQeH1ihSRlzSHk8OXCgPV/zDtJTJ TV3caPqBaowPN56zbR5RjbaCM1fFWwBilhGEU2yLcvmW7oePDYtW2QIKQB0RqBGPeY9M OuxIXsPkTRpedDisgigqT5Bgrs/AJOR1maiZmOKPewmZ2+Dtk0t3pmqKCfUEepS7VNAG okLQ== X-Gm-Message-State: APjAAAVlAuLLiHnVLzWWyE1SrMPr9XerThj6GyaNa7lP349zkEUParUy M9F0FEOI2v6+lPG/1zWZMBOEJ+9b X-Google-Smtp-Source: APXvYqyc3aSti/U5oNi4dzM0PAa4uurOA3qDecHoi1H0tLXwinlcRHIabtkS+DFhfZpgettheRJJmA== X-Received: by 2002:a05:620a:1444:: with SMTP id i4mr16557501qkl.278.1571543467704; Sat, 19 Oct 2019 20:51:07 -0700 (PDT) Received: from [10.1.0.46] ([72.53.232.42]) by smtp.gmail.com with ESMTPSA id p56sm7715249qtp.81.2019.10.19.20.51.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Oct 2019 20:51:06 -0700 (PDT) Sender: Evil Eric Subject: Re: BUG #16065: The operation nodes in query plans outputted by EXPLAIN have no authoritative definitions. To: Jeff Janes Cc: pgsql-bugs References: <16065-4c4eddc338dbd871@postgresql.org> From: Eric Toombs Autocrypt: addr=ewtoombs@uwaterloo.ca; prefer-encrypt=mutual; keydata= mQINBFgnAsABEADt29OX16cnUJ7zbY050VKenmu7tiLgv7bqTxGbjKeeIz7Si9NyW71fNAX+ Q3t6zXeFJtyXN3CVbAFzkno1iFCO8Ws0irnKa7EIg8D7o6+1LXTqO7tIUrWUKChBtQa+5Dsl BgKhmOlb8+pBy4AFPCsYOaxXocCmqAhmx3THv/SLHMX6YG990tjQHAseS8LLzVmW8hvxUpmQ bjazwntTf+Kadmtkfuuab83fMHeZNf+jh43YwG7lnt80KkqglHi7TcrAalWGYKRQ+JMLutQB iJWovdHzWRtqcLivnEhEArI0Z2QRfdH2IKiPi2NkjpeFnE0WTTzl/67aAGnUzyW8wXuBz2qR PpIlhsZUvtWY+p0tUP9jy/M+SPsBv4K6XnwK9ENQD4nH1FA2pSLyjysB7SOaO4qrC3fOAfem hmIjdhm5DwuLA6+ezaBF5N+9wMOs819hXi+E24FXZ7u4WEkO0uWs7sGjEVk4gQao7MdVYzc0 r/x6PyDtHxf+r1+x2QmNWQZDRLSrL2lwu9EeQTBHUdNXDMiV50gcB+q/GfzECoLhbh7M3jal HRXnGl5ONwBpcfcHXxuGu+8a6kQWF8X5IHa//QfHlJPsxg/acZkyNdYTZpB20BdsAymztk45 32bdtBBPrqDUGrM23aXkKlZJSqa5s3TbJBvyl+vKft5m6c4TJQARAQABtCNFcmljIFRvb21i cyA8ZXd0b29tYnNAdXdhdGVybG9vLmNhPokCQAQTAQgAKgIbIwUJCWYBgAULCQgHAgYVCAkK CwIEFgIDAQIeAQIXgAUCWE2eNgIZAQAKCRDeC87Z1OG2Rm8nD/9/kU2eYymyhm4wAzEH8p8P BuUolarSkBeFROue6Aj9unOm8xXvMY5mVH0RU3lYh6uX9SLh+xAvzOpzP0dfZ48x3jCy/5UZ E6t4LUBzQ/mJrGXnkXSSdvcq5eP9Kfx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z+3EZq8SDKw2SDT9PlCRfq3WThPXmZ9lrR413u5wizax pzcnjvY6tOEH2Cy0+zyV2ouboXuu+xAlip5jVcfWmYlwyFuM8GGCWHfBWDOOAPTRih0g0pE9 fntOcirKOb7DmXtYmLu0sfWQP+NC6A3ZwyDbgBWTgA0UVGCGHzAXWxSqJSD98+MAEQEAAYkC JQQYAQgADwUCWCcCwAIbDAUJCWYBgAAKCRDeC87Z1OG2RtV9EACCKrp+3IB/mvEWQHjptlGp q9/mr+QOiDX/YSCw4i4KcGEjULg5yx4QwUUFT4Kz/VgQhe4cAcjlythml3cPUIzTzdoyIL2n H6R9eBm3Vwh1V0xW7vY/Ai3krg1YiFvVndzYFnt3KHIiAFBFP7W7UyszSn9qs7id/CR1xabB P+ui/jK7ttLzFpNYF0Oc9a21XhDT0uAIg/BIYKF2jIc6QtfHgU4QxbKKbo5+phe0VMbm2+TK MumkL4nycytTxe7DGzoXrWal02DFJJArid0nSCU5OMl2Mv22SoAF3Qq9iNPTn4r8R1pgOI8g xCBPIm/ALnefIa/s5DvxKgXGPJINQrg8r4X9tPMDRWIICGJ2M38KcXj09j+Or+DEG/NIO05Z 9ZoU9EbjAyPWNNwUT+7hj2mI8WmZiRZB0ctJVw/m64bkV3oB5+Pa2DMdvd7dGWUZ/jPYNCHH F/xgMt98EjDxDl7scDyOXf38LBkMvHVNRJ5OWFE3OK5wCYkN2pyvM6fz2pQXObALWorDnPBG fdu2fm4RbL7TE2UeCFuGz3amTTyw03+Y1wPi+qFCEOK+TQMHR8mOCbavR2A9nLqZ9rOZnuBH yUdEKuEcRhJNzV4ZA6ltL3d2FG00kT4uwB+8WJZB1XQeeAlh3R7sEEgHrW4Lw0QNb5EA84tW vnPk6t9PxlbDHg== Message-ID: <23dd54ef-f1cc-e8a3-4d60-4486aeda626a@uwaterloo.ca> Date: Sat, 19 Oct 2019 23:51:44 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------3122D19A78AC276346929927" Content-Language: en-GB List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------3122D19A78AC276346929927 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit I was unaware of the existence of a docs mailing list. I'll post this there. On 2019-10-19 17:07, Jeff Janes wrote: > On Fri, Oct 18, 2019 at 11:02 AM PG Bug reporting form > > wrote: > > The following bug has been logged on the website: > > Bug reference:      16065 > Logged by:          Eric Toombs > Email address:      ewtoombs@uwaterloo.ca > > PostgreSQL version: 12.0 > Operating system:   any > Description:        > > The official documentation of EXPLAIN is here: > https://www.postgresql.org/docs/current/sql-explain.html > > It's a start, but it doesn't actually define any of the operation > nodes in > the query plan tree it outputs, e.g. Seq Scan, Index Scan, Index > Only Scan, > HashAggregate, Nested Loop, Nested Loop Semi Join, Nested Loop > Anti Join, > etc.. Online, there are descriptions (i.e. guesses) of what each > operation > node is actually doing, but these descriptions are not authoritative. > > > I agree that the documentation of EXPLAIN is sparse in general, but I > don't buy this particular complaint.  If someone doesn't know what a > Nested Loop is, are they going to understand any reasonable length > description of it which we can offer?  If someone doesn't know the > very basic vocabulary of computer operations, what words could we use > to explain things to them? > > There may be value in providing translations of those terms into other > languages, but that is a different topic. >   > > With authoritative definitions of each operation node, there would > be no > more guesswork, and DBAs could have a much more reliable mental > model of > what a query plan actually does. > > > It seems like an infinite regress where we have to provide an > authoritative definition of every word we use while providing the > authoritative definitions of the other words we use.  Maybe some > clever person can break that loop, but without seeing a concrete > proposal I am skeptical it can be done. > > In any event, it certainly isn't a bug.  Probably the docs mailing > list would be a better venue to discuss it. > > Cheers, > > Jeff --------------3122D19A78AC276346929927 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

I was unaware of the existence of a docs mailing list. I'll post this there.

On 2019-10-19 17:07, Jeff Janes wrote:
On Fri, Oct 18, 2019 at 11:02 AM PG Bug reporting form <noreply@postgresql.org> wrote:
The following bug has been logged on the website:

Bug reference:      16065
Logged by:          Eric Toombs
Email address:      ewtoombs@uwaterloo.ca
PostgreSQL version: 12.0
Operating system:   any
Description:       

The official documentation of EXPLAIN is here:
https://www.postgresql.org/docs/current/sql-explain.html

It's a start, but it doesn't actually define any of the operation nodes in
the query plan tree it outputs, e.g. Seq Scan, Index Scan, Index Only Scan,
HashAggregate, Nested Loop, Nested Loop Semi Join, Nested Loop Anti Join,
etc.. Online, there are descriptions (i.e. guesses) of what each operation
node is actually doing, but these descriptions are not authoritative.

I agree that the documentation of EXPLAIN is sparse in general, but I don't buy this particular complaint.  If someone doesn't know what a Nested Loop is, are they going to understand any reasonable length description of it which we can offer?  If someone doesn't know the very basic vocabulary of computer operations, what words could we use to explain things to them?

There may be value in providing translations of those terms into other languages, but that is a different topic.
 
With authoritative definitions of each operation node, there would be no
more guesswork, and DBAs could have a much more reliable mental model of
what a query plan actually does.

It seems like an infinite regress where we have to provide an authoritative definition of every word we use while providing the authoritative definitions of the other words we use.  Maybe some clever person can break that loop, but without seeing a concrete proposal I am skeptical it can be done.

In any event, it certainly isn't a bug.  Probably the docs mailing list would be a better venue to discuss it.

Cheers,

Jeff
--------------3122D19A78AC276346929927--