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 1mSaNV-0007C8-6N for pgsql-general@arkaria.postgresql.org; Tue, 21 Sep 2021 07:39:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mSaNT-0006aT-TF for pgsql-general@arkaria.postgresql.org; Tue, 21 Sep 2021 07:39:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSaNT-0006aL-Ki for pgsql-general@lists.postgresql.org; Tue, 21 Sep 2021 07:39:43 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mSaNM-0002Dw-RV for pgsql-general@postgresql.org; Tue, 21 Sep 2021 07:39:43 +0000 Received: by mail-wr1-x42c.google.com with SMTP id q26so36350671wrc.7 for ; Tue, 21 Sep 2021 00:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=SltgCDJKiWMHIUfYuHqadc6iHx8S4jXM0BJJPAl2bak=; b=DIdw8npxVHYHWV0a+SqN/pYRxb4m+obWGTI98NpTKz+xo35FIJ9Jv40cTScCibdFk+ AAtXLaq1ijT9gugah4Prdn+JQWcGatOqRABck/skTomjQ87KZYgdTNQPCG1c7mAWoQTl 2Ni0xRQ6njobPmqZt/MnhDiaR4fvLhcKenIhkRFFUXdJyM0r1mdj93d+6YUEm5vgWDUX pYrsUhcAzulIMHQ+q+Ad1r7+Nj9yS9dJD4zgx3yoGrtoI1bylIpsPzfEYox9JgsnxvPJ qL4C7pX0idYLPZDSzIurKuHNPgUo+mlwOX68MVzCBtiGD5ZWu9n+ctYIwcG6u/HtFMxB SC1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=SltgCDJKiWMHIUfYuHqadc6iHx8S4jXM0BJJPAl2bak=; b=oFqm44qWVUI+m/XpWG0uxKCl+NEuOvUVWJ6AMhlnEYVI23KehtK+VRCajXgywGL2Wo Hzsnez25DUFTIbkEtslp0R3vZ7e5ZesLju6pLM344hSMpZvXi1+jL0YNo2XIoxtEU80R E4G5CZXHhIcTWttagP0X7hfZ0FvlY87vrGQgeEb1ZqFv49gvGXfJcgZsS9YgybdpmjNb z9+vRGeiC/ONwkh3vKKflr3buyA+fQ0j0LXJdlEJpsEfCog5ba+n3CoWz56UUVJLBYDL jlm15UmG4y62stlHen6BSNWtcyI6gJLzif9ktKNNWCB5uQ64norUpaQ2L4WaQkyWeLYp fuFQ== X-Gm-Message-State: AOAM531nJpXc6zSwHCS53jVB2AVQyX/GxgsmVNJFECQ2wEAdBcOAJBEF jE1jAcbJBVfwZQq4GMYwKw6fmQ== X-Google-Smtp-Source: ABdhPJzuazaTYhmFJrAUR8TPOtW4kvRIolg40SagwMSo39TIbZUinqE8MeKhN/QsgylQTM6T9RfHhA== X-Received: by 2002:a7b:cd90:: with SMTP id y16mr3007618wmj.84.1632209975685; Tue, 21 Sep 2021 00:39:35 -0700 (PDT) Received: from localhost.localdomain (dynamic-dz4sqfiy671l76fsd-pd01.res.v6.highway.a1.net. [2001:871:5c:1cb:3dde:c914:eb68:406d]) by smtp.gmail.com with ESMTPSA id d129sm2042046wmd.23.2021.09.21.00.39.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 00:39:35 -0700 (PDT) Message-ID: <6fecaaa93b51b57cd8dd52312a25db79a337bd4b.camel@cybertec.at> Subject: Re: Timestamp with vs without time zone. From: Laurenz Albe To: Tim Uckun Cc: pgsql-general Date: Tue, 21 Sep 2021 09:39:34 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2021-09-21 at 19:35 +1200, Tim Uckun wrote: > It seems like it would be so much more useful if the timestamp with > time zone type actually stored the time zone in the record. This has been requested before, and it would be closer to the intention of the SQL standard, but I guess it won't happen. For one, it would change on-disk storage, which would make it impossible to use pg_upgrade. It also would require timestamps to occupy more than 8 bytes. The best solution is probably to explicitly store the time zone as an additional column. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com