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 1tlapB-000PE7-AE for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Feb 2025 21:44:46 +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 1tlapA-00Gv6U-1L for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Feb 2025 21:44:44 +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 1tlap9-00Gv5W-Nr for pgsql-hackers@lists.postgresql.org; Fri, 21 Feb 2025 21:44:43 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tlap6-0001yF-2T for pgsql-hackers@lists.postgresql.org; Fri, 21 Feb 2025 21:44:42 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5dee07e51aaso4817147a12.3 for ; Fri, 21 Feb 2025 13:44:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740174280; x=1740779080; 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=TRMIUYjRQGJvuOY/i+BTfSoFCimb9TitEeFJNGrDh9k=; b=AGDWPs2aucO51kiDwmyVNxf0yXNwc1GieQZHjDRbh6sidDgxcNOceQI/Q7G+OlgVvd sBDf0PLB55J9A00C3AwrdH1vGKcWdPnNS1hL/d6shOMsv6evnKnzqK38vracYLkUc1xq jh+Y7WQ5XFs6cFi4+TR+nkr58DHkT2akUer6nhixiQcQQnGrpHxlSbV/NGQZOMLBo8oQ gxdX1V7yfZG1lHuLhvwNuvi3ddFn2omEoVOqO27Rpy7afUbfEmsbATUhaixUXz6AsWHM K0ZTIlc/e80W2p0UA8k1zlzXzCyl7c/wfS3M5exSWHbfPOWtvvE9IdRhs/+/tXcbQ0oT FN8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740174280; x=1740779080; 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=TRMIUYjRQGJvuOY/i+BTfSoFCimb9TitEeFJNGrDh9k=; b=EjL6oRROfG5uR6yLfsA7PPjS1WR/XPD9LNxBP6mFs0nVx7fBSDXttb/Gv/IXpa18XU TALLsJC6iPbNPsHIzqeDWTZWetqWJYPYW5nkA3VaUNyw2T1LbYAUjo/qlLnDu9EidT8K FGndmLCT1llwopH5fldize+9Ek2KBUsll9oraVJeZimiPJ31wQI1X18nIEWlEXFQd2CC 2Ab+ZV2mQVD86U0+TNrRu51mXbR8P+ZNGUWMgFIsyT6fFYZGGPaqeX9UM9a0xyLUUjDG vhT5d/NyMD8Kj/f//e4J7VUj487OFioh7CdCIa9VwH/3Yb50oG/jVZj/ZypHlMNKOTkE sYnw== X-Forwarded-Encrypted: i=1; AJvYcCWzhjDg1+4+H825iyYccJ8H4alvAfJv9IU8DO2Ux8MJh5fMd/pt7PmjB28VGkHXMUUVOLXhbFGzI2/lESdL@lists.postgresql.org X-Gm-Message-State: AOJu0Yz3ADvzOJtZgsQoWKEbFMElmfjLKfxKFO7MxzLhYkiI2Fg94avM rjlfQ/LycDQXARas4KOF5r7HQty+hIkfM0BceL8wnRK4jRGnhwAsgou94LcqxeiFpaBqtzn/qwF JfPT6OVXSktoVuYGqUSNFvtFs7eDZ6u6F X-Gm-Gg: ASbGncsp9COsrt2ea5jCr/P6EZaeeIl8MGYBgRJPP92wyKC6kQfdHNrtswEvOe+YlyB S8kcJhzHkxBabZYv5eqdjnwKrdShbt/2Go4ltQW8Qk9eC4Dny2q++t0pHFdZYzoUfIKc0NN3/Eg 5OKcIuCRE= X-Google-Smtp-Source: AGHT+IEqFUb+K13xe9hA4tvSDx3YifC6HF5bHiObsQhVzxW/P3lfg0SThYbRDy+C8B9KkEBKbaSrByuTjP+L3sjNXis= X-Received: by 2002:a17:907:940e:b0:abb:b209:ab98 with SMTP id a640c23a62f3a-abc09ab52ccmr546214466b.34.1740174280193; Fri, 21 Feb 2025 13:44:40 -0800 (PST) MIME-Version: 1.0 References: <70bc1af0-6910-4f71-84ba-fa02095fe9ba@tantorlabs.com> <3212947.1739306803@sss.pgh.pa.us> <3365160.1739385615@sss.pgh.pa.us> <0e4c813a-18eb-41e2-8edb-89b78d43c82d@gmail.com> <01ec86c1-e04b-4cbe-b641-22cae8b87604@tantorlabs.com> <73e2440e-7d8b-4860-974d-931a93326d95@gmail.com> <7ab512ac-eed1-4fc8-9c5f-b42c0b0d313e@tantorlabs.com> In-Reply-To: From: Robert Haas Date: Fri, 21 Feb 2025 16:44:28 -0500 X-Gm-Features: AWEUYZk5-l2CIbhifuyL9MhI7ERWra07aZNmjH3yla05adAWKmW-uNEXDdWQkWo Message-ID: Subject: Re: explain analyze rows=%.0f To: Ilia Evdokimov Cc: Andrei Lepikhov , pgsql-hackers@lists.postgresql.org, Tom Lane 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 Fri, Feb 21, 2025 at 4:20=E2=80=AFPM Robert Haas = wrote: > So, I've committed v11-0001. I'm not altogether convinced that > v11-0002 is necessary -- no portion of the documentation that it > modifies is falsified by the committed patch. Maybe we can just call > this one done for now and move on? Well, not quite yet, at least. There are two buildfarm failures since I committed this. The first is here: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dconchuela&dt=3D20= 25-02-21%2021%3A22%3A30 diff -U3 /home/pgbf/buildroot/HEAD/pgsql.build/src/test/regress/expected/ex= plain.out /home/pgbf/buildroot/HEAD/pgsql.build/src/test/regress/results/explain.out --- /home/pgbf/buildroot/HEAD/pgsql.build/src/test/regress/expected/explain= .out 2025-02-21 22:20:39.229225000 +0100 +++ /home/pgbf/buildroot/HEAD/pgsql.build/src/test/regress/results/explain.= out 2025-02-21 22:22:38.193054000 +0100 @@ -528,7 +528,7 @@ "Plan Rows": 0, + "Plan Width": 0, + "Total Cost": 0.0, + - "Actual Rows": 0.0, + + "Actual Rows": 0, + "Actual Loops": 0, + "Startup Cost": 0.0, + "Async Capable": false, + @@ -575,7 +575,7 @@ "Plan Rows": 0, + "Plan Width": 0, + "Total Cost": 0.0, + - "Actual Rows": 0.0, + + "Actual Rows": 0, + "Actual Loops": 0, + "Startup Cost": 0.0, + "Async Capable": false, + I imagine what happened here is that the parallel workers didn't start, and so nloops was 1 instead of >1, and so we got an integer output instead of a fractional one. It looks like there's some kind of JSON-based EXPLAIN filtering happening here, so maybe we should just also be filtering out the actual rows column? But I fear this will turn out to be a problem for other parallel-query using tests that were modified by this commit: it can always happen that the workers start slowly enough that the leader finishes the whole query before the worker starts up. Maybe making the number of decimal digits contingent on nloops wasn't such a hot idea - I think it means that every parallel query has a small but non-zero probability of producing different EXPLAIN output in the probably-rare case where the worker startup is slow. The other failure is here: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dloach&dt=3D2025-0= 2-21%2021%3A25%3A19 This failure seems not to have uploaded any log artifacts, so I'm not sure how to tell what caused this. --=20 Robert Haas EDB: http://www.enterprisedb.com