Re: [DOCS] Reference Manual - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject Re: [DOCS] Reference Manual
Date
Msg-id 351FC58D.BD7C7C97@alumni.caltech.edu
Whole thread Raw
In response to Reference Manual  ("Jose' Soares Da Silva" <sferac@proxy.bazzanese.com>)
Responses Re: [HACKERS] Re: [DOCS] Reference Manual  ("Jose' Soares Da Silva" <sferac@proxy.bazzanese.com>)
List pgsql-hackers
> I'm writing Reference Manual and I have two questions:
>
> 1 - Why PostgreSQL accept HOUR, MINUTE and SECOND to extract if from a
>     date ?
>    EXTRACT (field FROM date_expression)
>    There are no such fields on a date!

And it returns zeros for those fields. I think that is OK; it makes for
a symmetric implementation...

>            - TIMEZONE_HOUR
>            - TIMEZONE_MINUTE

Hmm. Don't do these yet. But:

tgl=> select date_part('timezone', 'now');
date_part
---------
    -7200
(1 row)

so the underlying implementation does know about timezones. It may only
need a parser adjustment. Will look at it...

                        - Tom

pgsql-hackers by date:

Previous
From: "Vadim B. Mikheev"
Date:
Subject: Re: [HACKERS] Reminder: Indices are not used
Next
From: Bruce Momjian
Date:
Subject: Re: Added Having Clause