Tom Lane writes:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > I had figured that time would be cast to timestamp.
>
> How would you do that? With no date available, you're short all the
> high-order bits ...
For the purpose of extracting the fields that time does provide, namely
hour, minute, and second, it wouldn't matter. At least it gives me a much
better feeling than casting to interval, which is a completely different
kind of quantity.
Of course, a separate date_part for time and date would make the most
sense.
--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter