Re: Default to TIMESTAMP WITH TIME ZONE? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Default to TIMESTAMP WITH TIME ZONE?
Date
Msg-id 20210812183249.GC4821@momjian.us
Whole thread Raw
In response to Default to TIMESTAMP WITH TIME ZONE?  (Simon Riggs <simon.riggs@enterprisedb.com>)
Responses Re: Default to TIMESTAMP WITH TIME ZONE?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, Aug 12, 2021 at 07:24:58PM +0100, Simon Riggs wrote:
> I heard the moan about "Why doesn't TIMESTAMP mean TIMESTAMP WITH TIME
> ZONE" again today, so here is something concrete to address that.
> 
> AFAIK, SQL Standard requires the default to be WITHOUT TIME ZONE, but
> nobody seems to think that is useful. We even added a specially
> optimized ALTER TABLE command to make switching from WITHOUT to WITH
> TIME ZONE easy, so it is clearly an important thing to solve.
> 
> So add a parameter called
>    default_timestamp_with_timezone = off (default) | on

I thought we found that changing behavior via GUC usually ends badly.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.




pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Default to TIMESTAMP WITH TIME ZONE?
Next
From: Tom Lane
Date:
Subject: Re: Default to TIMESTAMP WITH TIME ZONE?