Re: timestamp with/without time zone

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: timestamp with/without time zone
Date: 2001-06-21 22:20:08
Message-ID: 200106212220.f5LMK8L08749@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Thomas, can we change the description to just 'timestamp'?

> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > Thomas Lockhart writes:
> >> SQL9x "timestamp" has no notion of time zones. PostgreSQL "timestamp"
> >> does.
>
> > AFAICT, it does not. The value is stored in UTC (more or less) and is
> > converted to the local time zone for display. But a data type is defined
> > in terms of storage, not display.
>
> I think Thomas' point is mainly a syntactic one, that our timestamp type
> will accept and display timezones --- which makes it compatible at the
> I/O level with SQL-style TIMESTAMP WITH TIME ZONE. But I don't find
> that argument very persuasive. An app that is expecting SQL-compliant
> handling of the zone info will still be broken, only in subtle
> hard-to-find ways instead of nice simple obvious ways. IMHO we don't
> support TIMESTAMP WITH TIME ZONE, and we really oughtn't give people the
> impression that we do. Whether what we have is better than the spec's
> definition is irrelevant here; the point is that it's different.
>
> regards, tom lane
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joseph Weinstein 2001-06-21 22:40:06 Re: JDBC Connection State Management with SQL Exceptions (esp Postgresql)
Previous Message Peter Eisentraut 2001-06-21 21:30:25 Re: psql+openssl+uniware7