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 1seJpr-00615i-6V for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Aug 2024 19:39:07 +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 1seJpp-00CUXB-Fi for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Aug 2024 19:39:05 +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 1seJpp-00CUWx-5F for pgsql-hackers@lists.postgresql.org; Wed, 14 Aug 2024 19:39:05 +0000 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1seJpm-004kS1-N5 for pgsql-hackers@lists.postgresql.org; Wed, 14 Aug 2024 19:39:03 +0000 Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-81f9339e537so12501439f.2 for ; Wed, 14 Aug 2024 12:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723664341; x=1724269141; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5zSwGcwQskUAGp1rp/o8qJjH/8DPGZDiE1I2zoJni3k=; b=R+zadRnLWWxDiZWxN1lFrSYv12oDQO6zwaXIsqkQiAyz22NWf9GSE0t9Fjz3lOE9GN lYTzgJX/FpOuRttZ3mW9KqJskp52DbSeJL1dTAoAO3mdIp0ScoYYkWJJa6yjb17+vHdA 6JDU0L+TJsDOL2cQfsY/R8f2qG+ssDtWa6uLi5vMiQIUEwpQ2DnARFiCO60mSakziWo2 +1NJOWu4uCAy10UNML1OU8YOm2nsSFFHotojDF7kFs6oy2cPLpYF2OfImY89Vg40U6ZN rVBQfwHM2aY7azabjgFZ/iNb0b9vc4a9ag33mdB+YCfDTkdPPxy/pOF9P1T5FMeHadPL QpiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723664341; x=1724269141; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5zSwGcwQskUAGp1rp/o8qJjH/8DPGZDiE1I2zoJni3k=; b=hBxAXTvEt3nTnDRRRV7fArBMI76yth/Ck/OgpRdCXP38xsPEyNHpU+J00KIEGEYmVY fyGwboUpLSP82DpeD5wSDyhxHFZuL82Y3EUsWqL99m3vKhE8eT0K+RlLb7xKTSEZPhUH Ws1Qyjmc/66K13TfS8uVrRlme9Rgop3CMvXquqTT5N4qpRR1kEBi4INhmRkB5TF49AZU xqz4gTMWrcMk92pcwZSXkRzcnCkAFbGBT+SPxBqig6TMcQ314R3HZt3i11ucqa3VfWQn sjcByuucPiBOle/CJFhfyiJLVoFI4T+JmnMcmH3Hes19ZCK17Cu7VEDvQL61iuZ7KhQW 3lNg== X-Forwarded-Encrypted: i=1; AJvYcCVygePgeCtVTU9QUePFajx+zSs+zxHJOTCob868JBMmfxw1jtLLk9SohUPUCo2ejeaA1TIEf28DUS3UWPus67rIVSIixHm8KPwPNBbs5CFmCHiV X-Gm-Message-State: AOJu0YzEs/sbQ4vZyF2NfPJLRoAXQvij5Tm3kj7vE9AbcSiPecdmnPDe OPIM6D88Jwet2RXghx+Don91WFTPPpBnkhrME6MGg420NAUrakDx X-Google-Smtp-Source: AGHT+IFKtwpml/lEzL51G2dlsAJRDHssIB127u+iXZPP0tTiXln0rUf0sOrYzkKFQp83L2TqeETUvw== X-Received: by 2002:a05:6602:630e:b0:824:e42e:a1bd with SMTP id ca18e2360f4ac-824e42ea24emr217696039f.17.1723664341540; Wed, 14 Aug 2024 12:39:01 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-8226720d2d4sm358823939f.10.2024.08.14.12.39.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 12:39:01 -0700 (PDT) Date: Wed, 14 Aug 2024 14:38:59 -0500 From: Nathan Bossart To: Heikki Linnakangas Cc: jian he , Joseph Koshakow , Matthew Kim , Alexander Lakhin , Tom Lane , PostgreSQL Hackers , Andres Freund Subject: Re: Remove dependence on integer wrapping Message-ID: References: <875ad3ec-f216-487e-baad-cdbaf32c1fcf@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Aug 14, 2024 at 10:29:39PM +0300, Heikki Linnakangas wrote: > Hmm, that still doesn't say what operation it's referring to. They existing > comments say "a + b", "a - b" or "a * b", but this one isn't referring to > anything at all. IMHO the existing comments are not too clear on that either > though. How about something like this: Yeah, this crossed my mind, too. I suppose now is as good a time as any to improve it. Your suggestion looks good to me, so I will modify the patch accordingly before committing. -- nathan