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 1tJeJo-004NQw-0w for pgsql-admin@arkaria.postgresql.org; Fri, 06 Dec 2024 19:48:52 +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 1tJeJl-00Db4S-5s for pgsql-admin@arkaria.postgresql.org; Fri, 06 Dec 2024 19:48:50 +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 1tJeJk-00Db4J-RI for pgsql-admin@lists.postgresql.org; Fri, 06 Dec 2024 19:48:50 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJeJf-001P0o-6H for pgsql-admin@lists.postgresql.org; Fri, 06 Dec 2024 19:48:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4B6JmgB12847790; Fri, 6 Dec 2024 14:48:42 -0500 From: Tom Lane To: Sbob cc: pgsql-admin@lists.postgresql.org Subject: Re: time data type question In-reply-to: References: Comments: In-reply-to Sbob message dated "Fri, 06 Dec 2024 12:32:50 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2847788.1733514522.1@sss.pgh.pa.us> Date: Fri, 06 Dec 2024 14:48:42 -0500 Message-ID: <2847789.1733514522@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sbob writes: > I thought I would see the time columns shift to mountain time as well. > am I doing something wrong? timetz acts completely differently from timestamptz. timetz actually stores two fields, a time-of-day (microseconds since midnight I think) and a timezone expressed as numeric offset from UTC. Once stored, the value does not react to changes in the timezone setting. By and large we consider timetz deprecated. It's there because the SQL spec requires it, but it doesn't behave in a way that most people find useful. regards, tom lane