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 1uc5tV-008thM-0O for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Jul 2025 17:26: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 1uc5tT-00CFVP-2g for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Jul 2025 17:26:11 +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 1uc5tS-00CFVB-Nd for pgsql-hackers@lists.postgresql.org; Wed, 16 Jul 2025 17:26:11 +0000 Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uc5tQ-0086Lg-2A for pgsql-hackers@postgresql.org; Wed, 16 Jul 2025 17:26:11 +0000 Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-3df2e7cdc64so385975ab.1 for ; Wed, 16 Jul 2025 10:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752686766; x=1753291566; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=0c6lloiN+M9PuTXnvxCP4lnqWghSwvFkSvy3XwFYav8=; b=f5HE21cF+VuBT4DcXtWGsBADOhhSxdeffF0XhB0qT+P6J0LJ3OoJspWgFAdhIIdQpy OqdG4uTx5OM021l1oYcGQE6aHOhREG5eyuDFhWpVPMqCHn8gAP1pTzBc6JdEOTA6/7DU e3PET+jN2hawMoIICJ3TIa+h+HoR5Xml/Um2hwMsXwM+Dy3dFG7N42bNpCeee+zf1azQ UlUvFgw9IMyTN4dOwT7xdHRpsbYMXfpsp0+x9q3ZF/puJaYEMRdvFn/A/+MdORoxc+6Q l8YjXGEATIutfqFrEiy0m1/S2bPrSOb1ru6gSmgLkdXsqVsWDsMiPMebeq7LckR/uTvf mbsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752686766; x=1753291566; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0c6lloiN+M9PuTXnvxCP4lnqWghSwvFkSvy3XwFYav8=; b=LlGfedIwQHSWaOnnJzw4XsWugpxaAdwAnXmhwO0etvtAvoAzwgEtfL9gSPlLWkwSyj 6nyhuBM9lYSaI6nO1LVDJYUkpRq1BQqLP7giCEsMj5VAMMocHd59bQdo+Boe2d4oqXPp 9SnhCectLg9Ed7EEmHwBDafboK8T8hNdtrzmkD9FPwjzA/khyshoBmeI5tBWlAXbd4QP /orl3o66VGdkRr1ihTkfHDbGwBO5Pa6o9OxNDjcnYtu6IZ4UnPnOXuOTe4VDowisEoiu z7pGm/pP5Yokp47Gg+Grrgx1Tjhpm/eXMAd3GZ0lrdIywOkDqOSdO4SFPVAb7jf/UXbz PERg== X-Forwarded-Encrypted: i=1; AJvYcCUrEd3SRCE4/DWsjtDRdcAkZC/3dCR3ugpWsQmcthfOIK0wGxVa70gIPfwOHeqNzo7oc66CaNLiWIiaU+Jh@postgresql.org X-Gm-Message-State: AOJu0Yz2LFWmqBKn8NIh3sNfOFDVs4b/mb1Y5qPGlkY8u6eaWRrc/z0b f17d2yD6H90SymcmA8iW6cO1swVimXKIa5CFm5686BAwEzS86u+m8k1u X-Gm-Gg: ASbGnct04jPTk6defIQsXlXBOn5pE4THP8eW11MwR0KoM+dLnQIrdXHBBgxugQYHvXM YklvQcqlHNSPyNtlpFMsH58BhlbqwiwYXgZlT79TyGFPKWhGnWW1RlnXOVuNeVwhPxoaACx8dz6 26YXN1FWjp5IzgTTEartolUbov6vOwJVy60dFAinx4rWQTsjdELiCaFCHjTgojdSCBKUSXw70VK HKeBfhy/FHd7c7jhHHJT6HesSh0X0WtXRTzN52M/6lveHvfHkTiBNZlTwvMg1+BV2f27vxQLiu+ FCFdtfgLBsi+xtZ2lFqYf+tHU5dGnjsuCAo3y1CuYs94FtXNjBUjpUvxkbvWZ0YnrPGG5OyOc1z U6N/Lz5BeBR/f/a1g56AQi7vp5I//GCzKxdKWwlhnTvckqMs6VnP9l74DcI5hpPeW5lxL3SXQp4 6xlIs1yUybDID2 X-Google-Smtp-Source: AGHT+IGsBUONVYnnOQ0aPBQ0PtzAdWBELznNPi8ezdqXmiaLn92Y0eiB4hhlm4hhWVUX7uhXptstmQ== X-Received: by 2002:a92:cd03:0:b0:3dd:ce9b:aa17 with SMTP id e9e14a558f8ab-3e28251fdb3mr35311995ab.20.1752686766338; Wed, 16 Jul 2025 10:26:06 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3e24611b135sm45253825ab.7.2025.07.16.10.26.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jul 2025 10:26:06 -0700 (PDT) Date: Wed, 16 Jul 2025 12:26:04 -0500 From: Nathan Bossart To: Dean Rasheed , h@nathan Cc: Robert Treat , "David G. Johnston" , pgsql-hackers@postgresql.org Subject: Re: small fix for pg_overexplain docs Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jul 15, 2025 at 04:14:44PM +0100, Dean Rasheed wrote: > On Tue, 15 Jul 2025 at 04:17, Robert Treat wrote: >> On Mon, Jul 14, 2025 at 3:22 PM David G. Johnston >> > The pg_overexplain extends EXPLAIN with new options that provide... >> > Suggest instead: >> > The pg_overexplain module provides EXPLAIN with new options intended to assist with debugging of and development of the planner. >> > (replacing the first two sentences of the existing paragraph) >> >> +1 for consistency, though I'd argue "intended to assist with >> debugging and development of the planner" would be easier to read (in >> either one sentence or two sentence format). > > +1. I find that easier to read. I disagree. While it might sound nicer, the extra "of" establishes parallelism to make it clear that the module is intended for debugging of the planner and not debugging in general. I also see little need to combine the two sentences. The first establishes at a high-level what the module does, and the second provides more details. Combining the two as proposed also loses context, i.e., "provide additional output" and "rather than for general use" are removed. We could try to retain those pieces, but then we're just combining two medium-sized sentences into a long one that is more difficult to read. FWIW there are counterexamples to the "The XXX module..." pattern, too (e.g., auth_delay, basebackup_to_shell, basic_archive, bloom). But I'm fine with using it here since that seems to be the preference. > Something else that's missing is instructions on how to load the > module, which usually follows this first paragraph. Good point. That should probably look something like this, which is mostly lifted from auto_explain: To use it, simply load it into the server. You can load it into an individual session: LOAD 'pg_overexplain'; (You must be superuser to do that.) You can also preload it into some or all sessions by including pg_overexplain in session_preload_libraries or shared_preload_libraries in postgresql.conf. As an aside, the superuser note isn't totally true because administrators can put stuff in $libdir/plugins/ to allow non-superusers to LOAD it. Maybe we should just remove the superuser note in the module docs. -- nathan