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 1tcm8h-002ZQt-SO for pgsql-general@arkaria.postgresql.org; Tue, 28 Jan 2025 14:00:28 +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 1tcm8g-001JqJ-Py for pgsql-general@arkaria.postgresql.org; Tue, 28 Jan 2025 14:00:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tcm8g-001JqB-Fa for pgsql-general@lists.postgresql.org; Tue, 28 Jan 2025 14:00:26 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tcm8d-001y4H-0e for pgsql-general@postgresql.org; Tue, 28 Jan 2025 14:00:26 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4361f664af5so64993595e9.1 for ; Tue, 28 Jan 2025 06:00:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738072823; x=1738677623; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from:from:to :cc:subject:date:message-id:reply-to; bh=a31c1Q0lsqMjX+Bq7BZI9Uyk0cEUS4HqvG11giFyLaY=; b=fepGGHyC6q5LO/tGaSxdb4OxzwgOu2ltMIJWkQBU3dfhUrHnk1Nfzh/94YZL/wUHDE 2mPv7yZbA7BobHhvV05JV9USCZoovrB7HfanMSuorxAycBpcPbsCQmt/dB95gQj1rnbZ 2PHRRYTTVWD0VUqRbHUHTA8DY6hYO7VTIXj6WOMJfqcuol/vJ08kIElyOZ0akzYO1Ood /GeJh7NiCv7K1+5aXFd7jgtwSy+Mct2kwDgYFBwak6PySq9U5lhOzXTyQo3kYj5hPFCK 0B1hX/NHp+aGBMdYXd1Rz09W83hOLtD64x3Sl2KR7HjXUZZT7Nxkefq/ep5W1DnG9yJn JBHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738072823; x=1738677623; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=a31c1Q0lsqMjX+Bq7BZI9Uyk0cEUS4HqvG11giFyLaY=; b=wWVMD96zz/Tv8pWaF+0UeasoGTHfbrB/zXgPSYSLbiRB4cH6qNMmvrvo1tPa0pQ0d5 8Jq+WZyg/tH75Zgwk2WGEjyCDK80WmHpTflkHvtjoycYaOx+NDaEG0ekgmZ0OApNZAPM PquJB3qzoUFDzLm4FTryfxErhgN2cItT+kOLk4MLM1kGHv4no3BFyhgeYzrBSXiGLKf9 /hVdupshXxTtYn7wVvp+HgH8hXJ5X3MXZ+r1/VgfqVSQuP5nl9xZdKldn+mE349MtiwZ 4ObXDa7vy02cT1YbgCprVHF2PGk+MwsF9fR30jJX7VrSy+JW/zsA4nrvvIvuUwK1op2B Cdvw== X-Gm-Message-State: AOJu0YyAuOLsBJK6NMOH2jkhEpzdylLXNEcMZwfuSS0iQrx7z/yWxz5o ajp/1xeSfgJotGJd8Sh4U0aw2r7KOwLlzh1LSPq2cOwXPqQAgQHsTpLmhOcstes= X-Gm-Gg: ASbGncuzkouFMkGwtEv/b/0bVcuWxKulLqi31Qxz+emWlvF0m2GfWuG3IG5cS0JKO91 QqPBmRTaBvsT2tm07O9PL3OKfaJ4/c6EfgZdtz4W7luKA0/8BCPSWBJfUEp0wxENdD1RNcLaR1X JuKwDxGJWpGlRJfXZUwaDmWzkuOc4VH9knbEPfF0bijemJeHmWmD/CvO6n92PybwBWPWFq5xYTO fBig/2r1+5AIpCFG06Q8wH+4y/aywtmvHxHctCa0RFfZmg3+8JsnDxEAGQCgwrAMXYClA8uhUr0 QVrZ1+gYef/5JM244MNr61xlKtdeuP0iHOreyQoGtY0igCSX2OTUnVoE2M9QWluaALmXeVM2juS IQA== X-Google-Smtp-Source: AGHT+IEuX5q6CQsN5Wso3ZdHKRQ3Zdk43a49cgXxUgnCMDMQUtJG/FeQf60uidFDZcmzR1puCZdnUA== X-Received: by 2002:a05:600c:1da1:b0:434:a202:7a0d with SMTP id 5b1f17b1804b1-4389141c227mr361894135e9.22.1738072822500; Tue, 28 Jan 2025 06:00:22 -0800 (PST) Received: from [192.168.177.75] (33C7E808.skybroadband.com. [51.199.232.8]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c2a188a77sm14517797f8f.51.2025.01.28.06.00.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jan 2025 06:00:21 -0800 (PST) From: Nem Tudom X-Google-Original-From: Nem Tudom Message-ID: <5a4de43a-22ef-4b35-9ea4-57a5b2f520c6@gmail.com> Date: Tue, 28 Jan 2025 14:00:20 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Issues with EPOCH-s, TIMESTAMP(TZ)-s and leap seconds. To: Thomas Munro Cc: pgsql-general References: Content-Language: en-US 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 On 28/01/2025 00:05, Thomas Munro wrote: Thanks to you and all the others who took the trouble to reply, > I showed the bones of how you could do this in SQL here: > https://www.postgresql.org/message-id/CA%2BhUKGLU9Don4YHnfdzn0eeWQsUu8GJDaLiUAefLLT6%3DmmeGoQ%40mail.gmail.com The technical explanation is much appreciated - I'd gathered (more or less) as much from my searching and reading the leap second Wiki. So, the situation is that, basically, leap seconds are "fudged" to use the technical term! I asked the question with a view to having accurate TIMESTAMP differences - i.e. to the second. However, since everyone is fudging (incl. AFAICS Oracle and SQL Server), this means that accepting the status quo will just make my inaccuracies will be the same as everyone else's, ergo I'm golden! At least that's one issue that I can safely ignore - I didn't fancy implementing this on my own. Thanks again and rgs, E!