pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Allan Engelhardt <allane@cybaea.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: [warning: largely off-topic] Re: Data type confusion
Date: Mon, 06 Aug 2001 15:52:43 -0700
Message-ID: <web-97686@davinci.ethosmedia.com> (raw)
In-Reply-To: <3B6F1C9F.F8421C35@cybaea.com>

Allan,

> Thanks for your explanation.  I'd like to get hold of a copy of
> SQL99/PKG001 to see what they have actually defined.

Tom posted a section of this.

> I think the INTERVAL type sux :-)  Long rant follows - consider
> hitting the delete button now.

Au contraire.  I replying to the list because I think that your rant is
actually relevant to all date/time development.  (If your post wasn't to
the list, I'll forward it).

> In this area, there are a number of different concepts that it would
> make sense to separate.
<snip>
> What's an INTERVAL supposed to be?  DUTIME, DLDATE, TIMEU or
> something that really belongs to the CALENDAR?
> 
> All of the above?

That is a very important question to answer.  Here we have an
unfortunate dilemma:

On the one horn: Absolute time, or UTIME, is *much* easier for a
database to deal with since it follows fixed rules.  LTIME or
DUTIME/DLDATE etc. follow rules which may change from year to year and
country to country (or state to state in the US!), making it impossible
to compile such date and time rules as part of a database.

On the other horn: Of course, what many/most users want is their local
time and date according to local rules (admins of worldwide web servers
exempted).

So ... my first question:  surely someone has grappled with this problem
already?  Surely some professor of C.S. in a university somewhere has an
answer for us?

-Josh

P.S. My head hurts, now.







______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco



view thread (19+ messages)

Message-ID: <web-97686@davinci.ethosmedia.com>
Permalink:  ../web-97686@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-97686@davinci.ethosmedia.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, allane@cybaea.com
  Subject: Re: [warning: largely off-topic] Re: Data type confusion
  In-Reply-To: <web-97686@davinci.ethosmedia.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