pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Timestamp with vs without time zone.
Date: Tue, 21 Sep 2021 22:08:54 +0200
Message-ID: <YUo71gLmdyEV/ZRY@hjp.at> (raw)
In-Reply-To: <CAKFQuwZoiV=N9sWXMvonqu7uuRrdqhYjkCXC8jAWzruUPd+-_g@mail.gmail.com>
References: <YUmbZHqaq+NGLC1B@hjp.at>
	<CAGuHJrOVrgpxazJqKxyHsu99T9KCBmp+Zh-=9jHsdCy++W50JQ@mail.gmail.com>
	<YUoUSiOJDKAijVoE@hjp.at>
	<CADK3HHLtfoTC9W5v19uE9qzNT7vPvhkDeqbuhm66nTurfmyv4Q@mail.gmail.com>
	<YUoY6fCbTm/AGKve@hjp.at>
	<CADK3HHJD2RNh7iOHEK=dCqSBM2+hPR-0iTsSuYN2x-7KzxZKwQ@mail.gmail.com>
	<YUooOlUZrmcJKHAg@hjp.at>
	<4a195869-f9ed-c39b-4070-e882b546d7fd@aklaver.com>
	<YUo3dIa6YmbJWohW@hjp.at>
	<CAKFQuwZoiV=N9sWXMvonqu7uuRrdqhYjkCXC8jAWzruUPd+-_g@mail.gmail.com>

On 2021-09-21 12:58:13 -0700, David G. Johnston wrote:
> On Tuesday, September 21, 2021, Peter J. Holzer <hjp-pgsql@hjp.at> wrote:
>     These two values are completely indistinguishable. That's good for a
>     timestamp (they are the same time after all). But they are not a
>     "timestamp with time zone". The time zone is not part of the value but
>     of the environment.
> 
> 
> No, it’s inherent to the data type itself.  The data type has an implied time
> zone of UTC.  That is a reasonable definition of “with” in my book.

If you can store only a single value that's 0 bits of information (which
is exactly the storage used).

But I'm going to stop arguing here. I'm obviously not able to convince
you and you aren't going to convince me either.

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (35+ messages)  latest in thread

Message-ID: <YUo71gLmdyEV/ZRY@hjp.at>
Permalink:  ../YUo71gLmdyEV%2FZRY@hjp.at/
Also on:    postgresql.org/message-id/YUo71gLmdyEV/ZRY@hjp.at

 · 

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: hjp-pgsql@hjp.at
  Subject: Re: Timestamp with vs without time zone.
  In-Reply-To: <YUo71gLmdyEV/ZRY@hjp.at>
  References: <YUmbZHqaq+NGLC1B@hjp.at> <CAGuHJrOVrgpxazJqKxyHsu99T9KCBmp+Zh-=9jHsdCy++W50JQ@mail.gmail.com> <YUoUSiOJDKAijVoE@hjp.at> <CADK3HHLtfoTC9W5v19uE9qzNT7vPvhkDeqbuhm66nTurfmyv4Q@mail.gmail.com> <YUoY6fCbTm/AGKve@hjp.at> <CADK3HHJD2RNh7iOHEK=dCqSBM2+hPR-0iTsSuYN2x-7KzxZKwQ@mail.gmail.com> <YUooOlUZrmcJKHAg@hjp.at> <4a195869-f9ed-c39b-4070-e882b546d7fd@aklaver.com> <YUo3dIa6YmbJWohW@hjp.at> <CAKFQuwZoiV=N9sWXMvonqu7uuRrdqhYjkCXC8jAWzruUPd+-_g@mail.gmail.com> <YUo71gLmdyEV/ZRY@hjp.at>

* 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