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 1sfW9P-007CBn-QH for pgsql-hackers@arkaria.postgresql.org; Sun, 18 Aug 2024 03:00:15 +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 1sfW9L-0071uV-H5 for pgsql-hackers@arkaria.postgresql.org; Sun, 18 Aug 2024 03:00:12 +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 1sfW9L-0071uM-12 for pgsql-hackers@lists.postgresql.org; Sun, 18 Aug 2024 03:00:11 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sfW9F-000BbW-0O for pgsql-hackers@lists.postgresql.org; Sun, 18 Aug 2024 03:00:10 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2f01e9f53e3so51761381fa.1 for ; Sat, 17 Aug 2024 20:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723950003; x=1724554803; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=KhNG6mKJHx1KR5fAdgUPtnbvC16qzCOsaJEzOmQ5LcI=; b=h7pfbddg5zjVzhUFovmtKpJofIGSaRWZmNwAOEnOJSOwsPeAHH+uo8LjQFZ6GwkRyQ VEWWKIQpqlrEZQTeta6geYg3k7XQKQtyVA4EQ5nHF9iB/y6TXd7nwQ2hwBU+3Ce+amGT xkWEwpqn4S1QLFLVG3vAiQQVRYexlbAqb4h67yLPa2WBzsqu/PFuDVYhCWMwD8BaJIkY VSkJRCLaNxDCS7tAciwA/vLwuOi1c5yL+VnMCA+UN+T4arBT9THl1MOMTxWFhB31iub5 0FXfTTS6cGFzOxrxXvVaZaFQnyXMM6cL1CRlKyEEPpzSMkkqwyJ9s0HhfuJ0cNNO0y/j plqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723950003; x=1724554803; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KhNG6mKJHx1KR5fAdgUPtnbvC16qzCOsaJEzOmQ5LcI=; b=gPZAiuTFkIKQ/EJ+7ZlT1ohzY+iDzkn1Ym25mRFcf+cnIFGu6oIz/Dj1DdVj9Q6P3b f+/j8xc5edqRywvLlz2Lg8wNnlmWcp7MxHL4obzn2GkycyG232alB8kMNKirUt3gGKk5 Kj/zLZcvW7UbTPNcZWS6lUc9pzjzycvOZQfq0lQSDhJGcp5WJmb6sZVEHaeV6dSIgjAM CW4wZHYV8KMJ9FgLch1uJQcnk9uA5mxnYwh3kX198nIcLGhUAGjiZ0PDET/B/HXBg9lW fcO9ytf/qeuD9SdnLJpVdnfRexwjL7xAYFAZJnMJJveuNhMJ2ec3aWqjeiSiIncxIzd9 fdSA== X-Forwarded-Encrypted: i=1; AJvYcCWtuGlq+heUbTi3QxrTvgC4ESIFx1d7BAEhpzBT+oa12Es7xz/wRwS43RlNFG+cTYAnKlv8EN1xQAZK78h21HMlFQwbVIjvkFWhQ2CuANU/v4md X-Gm-Message-State: AOJu0YxNjy/uIw+YtlMuqSJElp/L1yndMVVuGYTy6zvXGMnKXo9gLZu3 2T7tUyY4AMM0x2wJdvrOKObK06E4d/Z3V4spqv3vhqrtn7ETgNjT X-Google-Smtp-Source: AGHT+IFJqDgM3MDAoaH/u6ak/dVEfSatB5zUTFC7dlu1eDJUGYynrICem9WAZ9vtIn1P94LRPNMbig== X-Received: by 2002:a05:6512:10d2:b0:52c:deb9:904b with SMTP id 2adb3069b0e04-5331c6dba84mr6486702e87.38.1723950002461; Sat, 17 Aug 2024 20:00:02 -0700 (PDT) Received: from [1.0.0.7] ([178.155.25.122]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5330d3b8bd9sm1088526e87.77.2024.08.17.20.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Aug 2024 20:00:01 -0700 (PDT) Message-ID: <91394c34-b67b-d881-bd76-23682a1f8449@gmail.com> Date: Sun, 18 Aug 2024 06:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Remove dependence on integer wrapping Content-Language: en-US To: Joseph Koshakow , Nathan Bossart Cc: jian he , Heikki Linnakangas , Matthew Kim , Tom Lane , PostgreSQL Hackers , Andres Freund References: From: Alexander Lakhin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Joe, 17.08.2024 22:16, Joseph Koshakow wrote: > Hi, > > I wanted to take this opportunity to provide a brief summary of > outstanding work. > > > Also there are several trap-producing cases with date types: > > SELECT to_date('100000000', 'CC'); > > SELECT to_timestamp('1000000000,999', 'Y,YYY'); > > SELECT make_date(-2147483648, 1, 1); > > This is resolved with Matthew's patches, which I've rebased, squashed > and attached to this email. They still require a review. > I've filed a separate bug report about date/time conversion issues yesterday. Maybe it was excessive, but it also demonstrates other problematic cases: https://www.postgresql.org/message-id/18585-db646741dd649abd%40postgresql.org Best regards, Alexander