Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltmOH-0007Mn-Os for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Jun 2021 07:24:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltmOG-00018g-NL for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Jun 2021 07:24:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltmOG-00018Y-FY for pgsql-hackers@lists.postgresql.org; Thu, 17 Jun 2021 07:24:40 +0000 Received: from sfr-1.cri.mines-paristech.fr ([77.158.180.225] helo=smtp.cri.ensmp.fr) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltmOE-0000uz-OQ for pgsql-hackers@postgresql.org; Thu, 17 Jun 2021 07:24:40 +0000 Received: from petersbourg.cri.ensmp.fr (petersbourg.cri.ensmp.fr [10.2.14.5]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id 94CBDC0227; Thu, 17 Jun 2021 09:26:32 +0200 (CEST) Date: Thu, 17 Jun 2021 09:24:37 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Thomas Munro cc: Gregory Smith , PostgreSQL-development , david.christensen@crunchydata.com Subject: Re: pgbench logging broken by time logic changes In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="2056645051-945376642-1623914677=:2693553" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2056645051-945376642-1623914677=:2693553 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT Hello Thomas, >> Before I could get to startup timing I noticed the pgbench logging >> output was broken via commit 547f04e7 "Improve time logic": >> https://www.postgresql.org/message-id/E1lJqpF-00064e-C6%40gemulon.postgresql.org > > It does suck that we broke the logging and that it took 3 months for > anyone to notice and report it to the list. Indeed. Well, it also demonstrates that beta are useful. > Seems like it should be straightforward to fix, though, with fixes > already proposed (though I haven't studied them yet, will do). I think that fixing logging is simple enough, thus a revert is not necessary. >> I have a lot of community oriented work backed up behind this right >> now, so I'm gonna be really honest. This time rework commit in its >> current form makes me uncomfortable at this point in the release >> schedule. The commit has already fought through two rounds of platform >> specific bug fixes. But since the buildfarm doesn't test the logging >> feature, that whole process is suspect. > > It's true that this work produced a few rounds of small portability > follow-ups: c427de42 (work around strange hacks elsewhere in the tree > for AIX), 68b34b23 (missing calling convention specifier on Windows), > and de91c3b9 (adjust pthread missing-function code for threadless > builds). These were problems that didn't show up on developer or CI > systems (including threadless and Windows), and IMHO are typical sorts > of problems you expect to have to work through when stuff hits the > build farm, especially when using new system interfaces. So I don't > think any of that, on its own, supports reverting anything here. Yep, the buildfarm is here to catch portability issues, and it does its job:-) There is no doubt that logging is has been broken because of lack of tests in this area, shame on us. I think it is easy to fix. > [...] For that reason, I'm not super attached to that new pg_time_usec_t > stuff at all, and wouldn't be sad if we reverted that piece. Well, I was sooo happy to get rid of INSTR_TIME ugly and inefficient macros in pgbench… so anything looks better to me. Note that Michaël is having a look at fixing pgbench logging issues. -- Fabien. --2056645051-945376642-1623914677=:2693553--