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 1rucSZ-006VUC-Fj for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Apr 2024 18:14:12 +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 1rucSY-006MMB-FC for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Apr 2024 18:14:10 +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 1rucSY-006MM3-3r for pgsql-hackers@lists.postgresql.org; Wed, 10 Apr 2024 18:14:10 +0000 Received: from mout.gmx.net ([212.227.17.21]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rucSV-002DiO-4t for pgsql-hackers@postgresql.org; Wed, 10 Apr 2024 18:14:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1712772841; x=1713377641; i=stepan.rutz@gmx.de; bh=tGm2xXUb7wO/KSDccZ2GNtlChvLH3c+u70OwzPI4+2E=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=kxknFCAZHsaUD7eaLI+7qoYPJEaLW9a305EO6ZtD6YgfVPXR2XXQRFNlyBtu6QWd p8hOQUTjTY/wVuULC5656znLv3JZgEjQxxgzC8kWyo1ZITF738Acm9v70krM6mX7W /dN1kBAKN6LG+UBy6btYLPj2M0MyVrM05j6TxIPd6nWmZQNVx3LLpWWjM23i1LTo+ 0O6sqOx0b0oeIkZaLc1zj+Vw0lKusrX/m64Rg9aHnHfaYjvr+/2KX54A4iEZXKcdq ANnwJeYj+Wm20n7kJtH7aRLL9gRNC4nSAPEGxODBBSGyfWbIY7zGasraoFkp7CF/O oWNqssjmer/dzCp12g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.178.108] ([94.31.83.126]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Ma24y-1sFSgv0CgO-00VyW4; Wed, 10 Apr 2024 20:14:01 +0200 Message-ID: Date: Wed, 10 Apr 2024 20:14:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Detoasting optionally to make Explain-Analyze less misleading To: Tom Lane , Matthias van de Meent Cc: Tomas Vondra , pgsql-hackers@postgresql.org References: <03f952d6-b773-be93-e5d5-8f9ea9c2d461@gmx.de> <7b7d46b1-d6f7-eb10-55c9-aa45fce57781@enterprisedb.com> <9126b7da-204b-4701-8e2b-37fb824a0cf4@gmx.de> <78507aa1-f850-50cd-458a-3986d973d092@enterprisedb.com> <886b209f-8736-9cf2-ab9c-89870dea7bd8@enterprisedb.com> <14746b40-16a8-b53e-18a6-f2872e696e34@enterprisedb.com> <1642956.1712072848@sss.pgh.pa.us> <384054.1712181051@sss.pgh.pa.us> <4017527.1712757455@sss.pgh.pa.us> Content-Language: en-US From: stepan rutz In-Reply-To: <4017527.1712757455@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:fRhMfI8zsoIw0gLHciEX2gp34GT3Fq2lKWE5Kfn80TuH59nOcpA T+S2S/hHkWfRr39i4ldSsI89B5NoPJ/5gzF3pF6FLotHSL5RW0KSIj5WmBCET9Rer1S2BT/ +CFcE5GVNRCY4cd5HY5dpNptDbrWPKYS8X7bsZoSplwXCAIgsd029qbct19xRSKtZel67u+ T/vPorrt1ZQV93nfU8GbQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:cubPFxKsc9A=;cl/ykh4/6Tf7WvsENVvn4kFo1fE W6pvqgTot7WT2XF+f0V/DWqG1y1DNn4J7c/dHAwIXnQs9BNa3mlIAz0WX5XLKgd3QerBREpqe aKNj2lD5NZetD/nVR4etvSH09K2ifZwT3WYdwlv+kMJxhG3wfYfakUfktvGutDV0xFKc4/BLr PIWf4X3PoV3LEUbCqV5oVH1ux8FfQyAnfmhLlENPBipndXa8t8X/kCKEQl+k9aY8LeAyTEV25 P74GnsOKiF1dJvbXhNn0brWihwoAvw37slD/RLR7wFEGg9zd2nPh6cja9L8+91Pv8cDFGy9So 2P1iLNRMyvdFw6xKBDbeAhkzoV1yQLJejTwKkxp0y5JhBJQwfy8q3CK52vO5OPpGR5G1r1uZ1 MuoeYHkSI2B9ECtcT+k9gHdoR3+1UmKkM5r5TXe3OKD1hhDh6gYEePUsFcWbsEiYN/GJRstVW VIPoFVlmQezBmcJrVBIcfjB7xdz/aYB/QOovbq70AueroUdHidQy06pTzTEJibnHsze1ZKEBn jDIAmKlXv+e+EVzYVBRmZWG/om63MY7SDjNqawabItPYyFjitRV5ovcTRCde3tTIQPpwMMiH5 NT//yqmPcoEgBvc86h/IRMZ/1A3CGz9UcpzjRxDCLwgfCQy+aIWq/o9acWACnywh1oObwwVB9 jicS+BRYRztCHnJR3IOYte9bJdfnrtA1lWtnO5mbOoKpgMqq0UXjZsPxjT2o4N8bKV8FeOQL4 F0FzEr5reRMMrBJseEbOmG+fPq9/KY9Sta+5eikPHpyjwOebOFC521qJbTUaVgTIzAZTYoBvX IvOP0GfXCKUDs1skl9YFLGIZChaMVmteXIP0R3JyTt3wM= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk First of all thanks for bringing this Feature to PostgreSQL. From a regular-user perspective (not everyone is a Pro) it is very misleading that ANALYZE doesn't do what it suggests it does. To run the query into some kind of /dev/null type of destination is feasible and that is what people end up doing after they have fallen into the "de-toasting" trap. Having SERIALIZE is a great improvement for certain. When I said that SERIALIZE should be the default, then this came mostly out of very surprising subjective experiences in the past. Turning it on certainly alters some existing benchmarks and timings. That is destructive in a way and would destroy some existing work and measures. I lack the overall understanding of the consequences, so please don't follow this (emotional) advice. So thanks again! and this will really help a lot of people. The people actually bothering with EXPLAIN options are likely to explore the documentation and now have a hint about this pitfall. The EXPLAIN part of PostgreSQL "feels" a lot better now. I appreciate all of your work on this issue, which came up without being on some kind of plan and of course for the overall work on PostgreSQL. /Stepan On 4/10/24 15:57, Tom Lane wrote: > Matthias van de Meent writes: >> Upthread at [0], Stepan mentioned that we should default to SERIALIZE >> when ANALYZE is enabled. I suspect a patch in that direction would >> primarily contain updates in the test plan outputs, but I've not yet >> worked on that. >> Does anyone else have a strong opinion for or against adding SERIALIZE >> to the default set of explain features enabled with ANALYZE? > I am 100% dead set against that, because it would silently render > EXPLAIN outputs from different versions quite non-comparable. > > regards, tom lane