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 1uP6Un-000NvC-9t for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Jun 2025 21:27:01 +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 1uP6Uk-00A1ew-56 for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Jun 2025 21:26:58 +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 1uP6Uj-00A1eo-Rd for pgsql-hackers@lists.postgresql.org; Tue, 10 Jun 2025 21:26:58 +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.96) (envelope-from ) id 1uP6Ui-001JgS-1a for pgsql-hackers@postgresql.org; Tue, 10 Jun 2025 21:26:57 +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 55ALQkDs804573; Tue, 10 Jun 2025 17:26:47 -0400 From: Tom Lane To: Michael Banck cc: Thomas Munro , Andres Freund , Andrew Dunstan , Robert Haas , pgsql-hackers Subject: Re: Cleaning up historical portability baggage In-reply-to: <68489e08.df0a0220.3c14af.fdc6@mx.google.com> References: <3322724.1659586159@sss.pgh.pa.us> <295419.1659918447@sss.pgh.pa.us> <747620.1660002360@sss.pgh.pa.us> <6846e0c3.df0a0220.39ef9b.c60e@mx.google.com> <68481005.df0a0220.23c1b8.78ca@mx.google.com> <68489e08.df0a0220.3c14af.fdc6@mx.google.com> Comments: In-reply-to Michael Banck message dated "Tue, 10 Jun 2025 23:05:11 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <804571.1749590806.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 10 Jun 2025 17:26:46 -0400 Message-ID: <804572.1749590806@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Banck writes: > 2. The fact that nobody else complained about those new(er) timestamp- > comparison additions appears to imply that there are no 100ms resolution > machines we support anymore. So did we consider switching those > pg_sleep(0.1) calls in stats.sql to pg_sleep(0.01) to save a bit of > time? Yeah, we realized last year that no supported platform has worse than 1usec gettimeofday resolution anymore [1]. So I think you're right that we could shave some milliseconds off stats.sql, as well as some other test scripts. I doubt this'd make for a meaningful time savings, but perhaps it's worth doing just for consistency: grepping for pg_sleep in our tests, I see anywhere from 0.1 to 0.001 sec. regards, tom lane [1] https://www.postgresql.org/message-id/flat/be0339cc-1ae1-4892-9445-8e6= d8995a44d@eisentraut.org