Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXCUU-00068Q-Ak for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Jul 2017 20:19:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dXCUT-00026D-Na for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Jul 2017 20:19:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dXCSx-0007mH-Vx for pgsql-hackers@postgresql.org; Mon, 17 Jul 2017 20:18:04 +0000 Received: from mail-qt0-x233.google.com ([2607:f8b0:400d:c0d::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dXCSu-0000Nb-6k for pgsql-hackers@postgresql.org; Mon, 17 Jul 2017 20:18:03 +0000 Received: by mail-qt0-x233.google.com with SMTP id n42so446411qtn.0 for ; Mon, 17 Jul 2017 13:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=mC2qn+Y8KRf/y5wA17k10v2iYH61oKPEXklYBAbu2+k=; b=I2ki7WTvYOHzM5hv9ypZo83TTqcPRo50XYC//rDhZQ8zpdglx03V/DE8QYZoU2+IkR YF6NZ2Xybs2GbxRYEQhYFEsSqhbLPmmdMvuWZP/J3xiijbiBvOTQbgEbpbyCeAsdIk5u hpXFfX7u45R87UpOChVFzoVN7Gm41oWJnT6iQmkJopz2BIaKNyJ8DTqRHqRacQ3cdfxD l41i8SNqNhR5P+XPhCerLA76izdNtsMXnY+kgEtqTCf8Bkwvtypc2f7hiSfZdQhAWzB6 bKyoc0AMPemnrEV548a6RWxRCKrR7BiF09Vc+b4RaHtNYiRSyTgLx6iXXOG2KmNIJKLO dc+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=mC2qn+Y8KRf/y5wA17k10v2iYH61oKPEXklYBAbu2+k=; b=VPtZSPEDR4lQVBJxXsV27EkL5h3rPXNV5sZiGjy0FYY8VQ3cw9VVDTvkwWvE9Fp1HS 104X1c+0ecY07wPHD049cTqNyGLyigfGImYo6QixUh+kJHzzY86i6fc3FsxNEHhHnjKT jKevJTPxXTLrMxGVDsaSLjj1ubZPjdfEeIhzvXXy72H5dS6Vn3z9sBzaX6zajdhpx+Om MxdnnQC4dZCAnuPQZCeEzdz/7nLnOfOKFiae/z2u5vrE3PxmbTGwSMiyMjw/KX4+elGK B9FLbFlf+squyBv9CodLLUBFy5Ieum620EXdUFon2kAMB3huf8t5hvZsciwFSGjKxfCQ BFGw== X-Gm-Message-State: AIVw111j8+6n6ZSxe7AYib5LutbV0uvz4e7qZemFsBl9h5s865T6j11y MEfVGpkhe2ayWQeVd0Q= X-Received: by 10.200.34.2 with SMTP id o2mr27686092qto.67.1500322677942; Mon, 17 Jul 2017 13:17:57 -0700 (PDT) Received: from [192.168.2.121] ([172.92.221.196]) by smtp.gmail.com with ESMTPSA id p24sm110449qki.49.2017.07.17.13.17.56 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 13:17:57 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Something for the TODO list: deprecating abstime and friends From: Mark Dilger In-Reply-To: <3D60B97C-5E80-4343-9CCF-390CD23B0E23@gmail.com> Date: Mon, 17 Jul 2017 13:17:54 -0700 Cc: pgsql-hackers@postgreSQL.org Content-Transfer-Encoding: 7bit Message-Id: <3CD79F5D-DB73-4F2A-B698-44FF1930CB97@gmail.com> References: <30691.1500156034@sss.pgh.pa.us> <3D60B97C-5E80-4343-9CCF-390CD23B0E23@gmail.com> To: Tom Lane X-Mailer: Apple Mail (2.3124) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org > On Jul 17, 2017, at 12:54 PM, Mark Dilger wrote: > > >> On Jul 15, 2017, at 3:00 PM, Tom Lane wrote: >> >> The types abstime, reltime, and tinterval need to go away, or be >> reimplemented, sometime well before 2038 when they will overflow. >> It's not too soon to start having a plan for that, especially seeing >> that it seems to take a decade or more for us to actually get rid >> of anything we've deprecated. >> >> Right offhand, I don't think there is any functionality in these >> types that isn't handled as well or better by timestamptz, interval, >> and tstzrange respectively. > > These types provide a 4-byte datatype for storing real-world second > precision timestamps, as occur in many log files. Forcing people to > switch to timestamp or timestamptz will incur a 4 byte per row > penalty. In my own builds, I have changed the epoch on these so > they won't wrap until sometime after 2100 C.E. I see little point in > switching to an 8-byte millisecond precision datatype when a perfectly > good 4-byte second precision datatype already serves the purpose. > > That said, I am fully aware that these are deprecated and expect you > will remove them, at which time I'll have to keep them in my tree > and politely refuse to merge in your change which removes them. Oh, and if you could be so kind, please remove them in a commit that does nothing else. It's much easier to skip the commit that way. Thanks! mark -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers