Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSlab-0002KC-GP for pgsql-general@arkaria.postgresql.org; Tue, 21 Sep 2021 19:38:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mSlaa-0002Mz-DM for pgsql-general@arkaria.postgresql.org; Tue, 21 Sep 2021 19:38:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSlaZ-0002MY-Hs for pgsql-general@lists.postgresql.org; Tue, 21 Sep 2021 19:38:00 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSlaS-0002pv-Oh for pgsql-general@lists.postgresql.org; Tue, 21 Sep 2021 19:37:58 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1A3AF3201EA3 for ; Tue, 21 Sep 2021 15:37:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 21 Sep 2021 15:37:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=s 2o1y2scaX2tePPlknkpTMyIS4HNY+C9Ovz3TAwS06A=; b=LQ6Kzc2wwj2bzKc1X HrxW8/Ot2kw7pVrx+9jffN5ddyfsBlOAViDIcnjJ9Md8rzg9oe/w0/VFYAXLtek7 1taPZBkW2qa6IqryAeCgBcAfvFduLaroSUnN8jY9qDiDytUR+e9CO8rlmnbxxU/l F5yz9BYU0AkiOP0XoSUOs3NG9kjI7pgPVZ25qup3aVfOOkvgc57ihlIpDJqyXRj7 6M1ANRySi6g+tC1q0w7p4IasUJzhqW372doXpluRrrGW0b65lUypq+VXBVTuelYS 6FRZXSMV98uu6lZZmRD+UaCMEt8ThKh8GdZtAc+ob90bL+6tZ6m2sOp21xzYskOt uLjow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=s2o1y2scaX2tePPlknkpTMyIS4HNY+C9Ovz3TAwS0 6A=; b=T+7AXHV+tKhCIfbPqoVjQFtVAnGmKogvK0H/qZPvuWiLuh04zmF18as3F t4IloAxTL+TsW92tHDW31XBF7p9CpZLvfcQFd2ajrJekva7Ooy+6qySPCyDKI4PP 0ZSbndS6ue3qW4u6b1jmVbNWoHKXjMIgAwhtcjaRjzSeM1S8WvMMC9D76Ub/XfO4 GWyu6XA9AgdXYh6Mez9TTXuqWAhC8joiH5Zy/oQQwuY3HS33pgo8MTr340iUmMWa Occx2V7JANwlTzPuKn+PK2Q1cwjcyKPFUupGDFQMiPgicVx6Dqg1w2Lhb8ryx0TP vYTZYtePSZMqvMbwtpWglCyGsekCA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeigedgudefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeevveefve efueegffekkefhgeeiueffgfetueejvdfghfeujeejhfekjeelgedtgeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 21 Sep 2021 15:37:50 -0400 (EDT) Subject: Re: Timestamp with vs without time zone. To: pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <4a195869-f9ed-c39b-4070-e882b546d7fd@aklaver.com> Date: Tue, 21 Sep 2021 12:37:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/21/21 11:45 AM, Peter J. Holzer wrote: > On 2021-09-21 13:43:46 -0400, Dave Cramer wrote: >> >> >> On Tue, 21 Sept 2021 at 13:40, Peter J. Holzer wrote: >> >> On 2021-09-21 13:34:21 -0400, Dave Cramer wrote: >> > On Tue, 21 Sept 2021 at 13:20, Peter J. Holzer wrote: >> >     On 2021-09-21 20:50:44 +1200, Tim Uckun wrote: >> >     Calling a type which doesn't include a timezone >> >     "timestamp with timezone" is - how do I put this? - more than just >> >     weird. >> > >> > I would say this is a perspective thing. It's a timestamp with a time >> > zone from the client's perspective. >> >> I disagree. When I read back the value the original timezone is lost. So >> it clearly DOESN'T store the timestamp WITH the timezone. >> >> >> I never said it stored the timezone.  I said that it has a timezone. > > The raison d’être of a database is to store data. If some data isn't > stored, the database doesn't have it, in my opinion. > But if you use timestamptz it does have it. The data(timestamp) is stored with time zone UTC. From there you can reconstruct the timestamp at any time zone you want, given the clients needs. I'm not sure why where it started is important when people care how it is presented to them on retrieval. -- Adrian Klaver adrian.klaver@aklaver.com