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.96) (envelope-from ) id 1wC1MS-001ajf-2h for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Apr 2026 20:24:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wC1MQ-003C41-2w for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Apr 2026 20:24:51 +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.96) (envelope-from ) id 1wC1MQ-003C3t-20 for pgsql-hackers@lists.postgresql.org; Sun, 12 Apr 2026 20:24:51 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wC1MO-00000000ggk-1Wud for pgsql-hackers@postgresql.org; Sun, 12 Apr 2026 20:24:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 63CKOgD8578512; Sun, 12 Apr 2026 16:24:43 -0400 From: Tom Lane To: Lukas Fittl cc: Andres Freund , Haibo Yan , pgsql-hackers , David Geier Subject: Re: Reduce timing overhead of EXPLAIN ANALYZE using rdtsc? In-reply-to: References: <26pttea74dz5gvsplaa4qsrwuytrza6g2mieqb7wxi4nnwb3cp@7uhq7zkfm6me> <343362.1776018031@sss.pgh.pa.us> Comments: In-reply-to Lukas Fittl message dated "Sun, 12 Apr 2026 12:58:36 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <578510.1776025482.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 12 Apr 2026 16:24:42 -0400 Message-ID: <578511.1776025482@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Lukas Fittl writes: > I think either is fine. If we did it with a message, how about this at > the beginning of the output function? > if (loop_count =3D=3D 0) > { > printf(_("WARNING: No timing measurements collected. Report this as a = bug to <%s>.\n"), PACKAGE_BUGREPORT); > return; > } WFM. regards, tom lane