pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ben Hood <ben@relops.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Domain based on TIMEZONE WITH TIME ZONE
Date: Thu, 10 May 2018 17:13:40 +0100
Message-ID: <D9289E35-E24B-4C3A-8E76-18220DF01719@relops.com> (raw)
In-Reply-To: <CALd+dcdCxk00TnL0ey_1Yk-egwwqFjF3BJbiA_=8aJwSjWP6Yw@mail.gmail.com>
References: <06EAD729-DC35-4E48-AB25-C42F7FA19C28@relops.com>
	<CA+bJJbz0Gwo8mkyzHa_4qjcNcMV0M00yTZ_LjUtaJu=M=+bpyQ@mail.gmail.com>
	<188A0270-0A9A-4ADE-A928-9067E99AE7B7@relops.com>
	<20180510103608.GB3622@hermes.hilbert.loc>
	<BCC1C385-7AAC-42BD-B790-08D7624C9414@relops.com>
	<CALd+dcdCxk00TnL0ey_1Yk-egwwqFjF3BJbiA_=8aJwSjWP6Yw@mail.gmail.com>


> On 10 May 2018, at 15:12, Vick Khera <vivek@khera.org> wrote:
> 
> On Thu, May 10, 2018 at 7:31 AM, Ben Hood <ben@relops.com <mailto:ben@relops.com>> wrote:
> Or are we saying that domains are one way of achieving the timestamp hygiene, but equally, you can get the same result as described above?
> 
> The *only* way to have timestamp hygiene is to require them to have time zones at all times, even if that time zone is UTC. Any other representation of a time is ambiguous without context.

That makes sense.

The motivation behind narrowing the built in TIMESTAMP WITH TIME ZONE down to a domain is to ensure the only permissible zone offset is UTC. This would be unambiguous.

view thread (36+ messages)  latest in thread

Message-ID: <D9289E35-E24B-4C3A-8E76-18220DF01719@relops.com>
Permalink:  ../D9289E35-E24B-4C3A-8E76-18220DF01719@relops.com/
Also on:    postgresql.org/message-id/D9289E35-E24B-4C3A-8E76-18220DF01719@relops.com

 · 

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: ben@relops.com
  Subject: Re: Domain based on TIMEZONE WITH TIME ZONE
  In-Reply-To: <D9289E35-E24B-4C3A-8E76-18220DF01719@relops.com>
  References: <06EAD729-DC35-4E48-AB25-C42F7FA19C28@relops.com> <CA+bJJbz0Gwo8mkyzHa_4qjcNcMV0M00yTZ_LjUtaJu=M=+bpyQ@mail.gmail.com> <188A0270-0A9A-4ADE-A928-9067E99AE7B7@relops.com> <20180510103608.GB3622@hermes.hilbert.loc> <BCC1C385-7AAC-42BD-B790-08D7624C9414@relops.com> <CALd+dcdCxk00TnL0ey_1Yk-egwwqFjF3BJbiA_=8aJwSjWP6Yw@mail.gmail.com> <D9289E35-E24B-4C3A-8E76-18220DF01719@relops.com>

* 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