pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeremy Finzel <finzelj@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Clarifying "timestamp with time zone"
Date: Fri, 15 Jun 2018 15:43:14 -0400
Message-ID: <315.1529091794@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMa1XUh2LTa7RFU_4ximPuu+tw8DCmW545-E7kJWJH6mnkM_BA@mail.gmail.com>
References: <CAMa1XUh2LTa7RFU_4ximPuu+tw8DCmW545-E7kJWJH6mnkM_BA@mail.gmail.com>

Jeremy Finzel <finzelj@gmail.com> writes:
> We often prefer to use timestamptz or "timestamp with time zone" in our
> environment because of its actually storing "objective time" with respect
> to UTC.  But in my own work experience, I have scarcely encountered a case
> where business users, and software engineers, do not actually think it
> means the opposite.

Yeah, it's confusing :-(.

> I do believe this is part of the SQL standard,

Actually not, or at least the standard thinks the type should behave
differently from this.  They think it should store a local timestamp and
then separately a GMT offset.  The way it works in PG was dreamed up ~20
years ago by Tom Lockhart, and in retrospect it was not a great idea
for him to have used the SQL-standard type name for something with
not-SQL-standard behavior.

However, at this point, it's not clear how we could change it without
causing truly enormous backwards-compatibility pain.  If it were a
fringe-usage type, maybe we could get away with a renaming, but it's
certainly not that.

> So it seems to me that "timestamp with time zone" is a misnomer in a big
> way, and perhaps it's worth at least clarifying the docs about this,

Don't the docs describe the behavior pretty clearly already?

			regards, tom lane




view thread (7+ messages)  latest in thread

Message-ID: <315.1529091794@sss.pgh.pa.us>
Permalink:  ../315.1529091794@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/315.1529091794@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, finzelj@gmail.com
  Subject: Re: Clarifying "timestamp with time zone"
  In-Reply-To: <315.1529091794@sss.pgh.pa.us>
  References: <CAMa1XUh2LTa7RFU_4ximPuu+tw8DCmW545-E7kJWJH6mnkM_BA@mail.gmail.com> <315.1529091794@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox