Re: Support for DATETIMEOFFSET

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeremy Morton <admin(at)game-point(dot)net>
Cc: Andreas Karlsson <andreas(at)proxel(dot)se>, Jeremy Morton <postgres(at)game-point(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Support for DATETIMEOFFSET
Date: 2020-04-10 14:07:09
Message-ID: 30253.1586527629@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jeremy Morton <admin(at)game-point(dot)net> writes:
> Oh well. Guess I keep using SQL Server then. datetimeoffset makes it
> impossible for developers to make the mistake of forgetting to use UTC
> instead of local datetime,

Really? That would be a remarkable feat for a mere datatype to
accomplish.

> and for that reason alone it makes it
> invaluable in my opinion. It should be used universally instead of
> datetime.

What's it do that timestamptz together with setting timezone to UTC
doesn't?

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message James Coleman 2020-04-10 14:12:16 Re: [PATCH] Incremental sort (was: PoC: Partial sort)
Previous Message Robert Haas 2020-04-10 13:55:07 Re: Fast DSM segments