Re: [HACKERS] Problem with copying abstimes - Mailing list pgsql-hackers

From Vadim B. Mikheev
Subject Re: [HACKERS] Problem with copying abstimes
Date
Msg-id 6f8ca18f612c624a16c42840407772f7
Whole thread Raw
In response to [HACKERS] Problem with copying abstimes  (Ronald Baljeu <rjb@xs4all.nl>)
List pgsql-hackers
Darren King wrote:
>
>
> > abstime has been used since the beginning of (Unix) time in the
> > internals of Postgres, but I would suggest that it might be deprecated
> > as a user-level type.
>
> Do I hear a vote of doing the same with oid?  I'd better quit while I'm at
                      ^^^^^^^^^^^^^^^^^^^^^^^
> least close to even here. :) :)

And you hear my vote too!

>
> > Other comments?
>
> Coming from a math theory background, why are people so intent on separating
> date and time?  They're both _time_ really... :)  One datatype that contains

Just because I'm not interested about time in some cases.
And I don't like to use 'datetime >= _a_day_ and datetime < _next_day_'
to get records for a day using indices, because I can't use indices
for "TO_CHAR(datetime, 'DD-MM-YYYY') = _a_day_" (we can't use
functions in multi-column indices - currently, at least).

> both is the only "perfect" date or time type.  (See what happens when I have
> too much coffee in the morning? :)

Vadim

------------------------------

pgsql-hackers by date:

Previous
From: Brian Schaffner
Date:
Subject: [HACKERS] text field ranking functions
Next
From: "Vadim B. Mikheev"
Date:
Subject: [HACKERS] Re: [QUESTIONS] SET DateStyle