pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Lockhart <lockhart@alumni.caltech.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-docs@postgresql.org, Thomas Lockhart <lockhart@fourpalms.org>
Subject: Re: Undocumented datetime functions
Date: Sat, 17 Feb 2001 23:29:08 +0000
Message-ID: <3A8F0944.30DE0665@alumni.caltech.edu> (raw)
References: <Pine.LNX.4.30.0102171729060.933-100000@peter.localdomain>
	<3906.982427334@sss.pgh.pa.us>

> > Hmm, I'm confused.  The timestamp type doesn't actually have a time zone
> > stored, does it?  Why did you want it to be dumped as "timestamp with time
> > zone" then?

Because it has "time zone aware behavior". And the input carries time
zone information, either implicitly or explicitly. And the output
carries time zone information. But...

> Andreas pointed that out awhile ago.  I'm inclined to agree: equating
> timestamp to timestamp with time zone is dead wrong, and we should
> revert that pg_dump change.

This issue is not as black and white as you seem to think. As you
probably know, the SQL9x definitions for date/time types are
fundamentally flawed, with no possibility for awareness of DST, local
time, etc etc. Cf Date and Darwen for a discussion of other aspects of
the problems. I don't really care whether what we currently have is
"timestamp" or "timestamp with time zone", but if, for example, I/we
implement an SQL9x-conforming "timestamp with time zone" it will not get
used. So where do we want our current data type to fit in, and how do we
want to "fill in the edges" of our feature set? An enlightened
discussion would be helpful here, though since we are not in a position
to discuss fundamental changes at the moment perhaps limiting it to
"which side of the fence?" for the existing timestamp implementation
would be sufficient.

                     - Thomas



view thread (8+ messages)  latest in thread

Message-ID: <3A8F0944.30DE0665@alumni.caltech.edu>
Permalink:  ../3A8F0944.30DE0665@alumni.caltech.edu/
Also on:    postgresql.org/message-id/3A8F0944.30DE0665@alumni.caltech.edu

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: lockhart@alumni.caltech.edu, tgl@sss.pgh.pa.us, peter_e@gmx.net, lockhart@fourpalms.org
  Subject: Re: Undocumented datetime functions
  In-Reply-To: <3A8F0944.30DE0665@alumni.caltech.edu>

* 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