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 1wG7Fn-005tlI-2P for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Apr 2026 03:30:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wG7Fm-0047tk-0Y for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Apr 2026 03:30:54 +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 1wG7Fl-0047tb-2h for pgsql-hackers@lists.postgresql.org; Fri, 24 Apr 2026 03:30:53 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wG7Fj-00000002VvZ-1Dmn for pgsql-hackers@lists.postgresql.org; Fri, 24 Apr 2026 03:30:52 +0000 Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-c76b994f7a8so2892500a12.3 for ; Thu, 23 Apr 2026 20:30:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777001450; x=1777606250; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qKprFCEnXj0YnP+/HpwnYDQtFd+6I8r72cvyQ70CRqI=; b=i6K/lv4Wv8DyluY6b3uukeXrDtlWrWH6IFhEllfAx3Y263vxV7QyruZYEMdhbqs+uK aCJkAaPJsbzc+wtfrEI6xWVj3sbJuO/WcTnZFWHLoswd+IMEBcxl5Ud+zCMoGB2dqwsw gpH00OtMLBO6DSFX1qg1HKkZsbslP3IUDveRVf5TdU3dhgVQRkvF/bCdhJbnECezlYP5 1xr/nMbJ0/7NYOfLeTI2mkZFwNFz044Cboiq4V+Zg5WohgKhSOAbtV2etg7REcuriq/k aDUYfZZY8biBDFb7LmZ53MxTxzqJhECzdjIsXFOcQwGn49CSbm2PEJlB+vt2f1Kl3uA8 9pAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777001450; x=1777606250; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qKprFCEnXj0YnP+/HpwnYDQtFd+6I8r72cvyQ70CRqI=; b=USb4tnwUalxWnpBI7K9NU/i7ou+91cGuVgLjHtVlOSAyDAWAZYX5/nuATYWC11HxSr XxdPQ4q3HZUptWPmMhxq3zV+1GvON9Dor/kO4Wwy6KF8u91GPhIzS+runAnmowo0ajXl lMEnwviU1Uo1qR2AZbKZkmpgwZ46gNDH0lGSV/ZCH+x9rqc98lLkO6BI/YnkPym+DTku SNBWE16Ek6nMzxH/5Y0PmH/D3cN+6p0SS6twD+WoGXH5xBk+SESxeWOx8cXzbqt0hgOg DwJEiw4Z2bdnBxhGTleSQkyQuIimnI00D34iFerKq5HWzXtMMjqqibZEwM3K/2zt3bDd RvMw== X-Forwarded-Encrypted: i=1; AFNElJ/h8dEzFNgiXgPNKZ6oOWHYGfFCAjSHGhQS8eoT8ptZXpMRyv0PYQQjTG0pM5mZJZCXg1YWR6RmyPw1qdHd@lists.postgresql.org X-Gm-Message-State: AOJu0YxMRSG2cJFkzLAAblePkX4NOLUWVfUwTBBNKFL5KiDtQne9skfP tqug2QTiEXzUTQxV/pweqprym8p+d9AWHGk5NRBUUkqjE/YdbUmLrwa4 X-Gm-Gg: AeBDiesvf6pZLq7l2Z02TPfhF72Xvyh9sUO4PiQu5AsFNlQNM8DQUB51/8oz69anKk6 SwMGEVzxczpf4TWfsCHuB3hC0fy9P20dNoXE+4E7+IPg974H7wEcyYv5X2t9+YTF3cawOMnon4e 3lUkGoJ9T1yni0JcxDzJ+bsl0oFlNMSEXrnzW7SwKqgDh24AijDJOjLVuKkxQhUujPL/tb892De JJrZWUwlrkKKzzDC1M69A5OWhHoJRUGjWWCqWxO1pey8XToULtQMyu67pT7cX1pmOT+nnIczAog aPxRAk4x4zOBGSygbUmJ01YbqGhXizTVWwLyDTNCWhIMNpaQ+3TT6Lcb+7L2nA63FK2sqyEiyNt CZ7AvsVMcdtwKNU4gH21WM0YRHB3nsVYfoHqrBz2QmRiZV5IGVUkXpdU4jHwBIF1KOGIngi945k 9paMdpWvquNESpsbJYwNt6tHDnqBZs6Je9k9mHRn+qp6F3+lGq4hUB X-Received: by 2002:a17:903:884:b0:2b2:6cab:313c with SMTP id d9443c01a7336-2b5f9f8328amr191419685ad.20.1777001450474; Thu, 23 Apr 2026 20:30:50 -0700 (PDT) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5fa9ff39csm213381405ad.4.2026.04.23.20.30.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Apr 2026 20:30:49 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: pg_test_timing: fix unit typo and widen diff type From: Chao Li In-Reply-To: Date: Fri, 24 Apr 2026 11:30:10 +0800 Cc: "wang.xiao.peng" , lukas@fittl.com, PostgreSQL Hackers , Tom Lane , Hannu Krosing Content-Transfer-Encoding: quoted-printable Message-Id: References: <7d4afbdb.5322.19d70df0de4.Coremail.wxp_728@163.com> <56B09FF0-13AB-4AF3-A4C4-29428A695FB0@gmail.com> <21E668C0-CEAE-44F8-B585-319F31883AFE@gmail.com> To: Fujii Masao X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Apr 24, 2026, at 11:15, Fujii Masao wrote: >=20 > On Thu, Apr 23, 2026 at 11:03=E2=80=AFAM Chao Li = wrote: >> I just checked old branches. Looks like 0001 can be back-patched down = to v10. Yes, pre-19, all branches use microsecond, so the back-patch = should change =E2=80=9Cms=E2=80=9D to =E2=80=9Cus=E2=80=9D. >=20 > Thanks! So I've pushed this unit change to master and backpatched it = to > all supported branches. >=20 >=20 >> For v16 to v18, we can make a tiny improvement by replacing =E2=80=9C1e= 9=E2=80=9D with a constant macro NS_PER_S. This change has been included = in the diff. >=20 > This change looks good to me. However, we should generally keep = changes to > old stable branches to the minimum required, so I applied this change = only > to master with 0002 patch. >=20 >=20 >> I see 0002 a bit differently. In v19, the unit changed from = microseconds to nanoseconds, which introduced a potential overflow: = nanoseconds require int64, but the local variable remained int32. So I = think this is actually a v19-only bug. >=20 > OK, I've pushed 0002 patch. Thanks! >=20 > Regards, >=20 > --=20 > Fujii Masao Hi Fujii-san, thank you very much for pushing. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/