Re: [HACKERS] Re: [DOCS] Reference Manual

From: "Jose' Soares Da Silva" <sferac(at)proxy(dot)bazzanese(dot)com>
To: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
Cc: pgsql-hackers(at)postgreSQL(dot)org, pgsql-docs(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Re: [DOCS] Reference Manual
Date: 1998-04-01 14:46:48
Message-ID: Pine.LNX.3.96.980401144335.405A-100000@proxy.bazzanese.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 30 Mar 1998, Thomas G. Lockhart wrote:

> > 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...
>
The point is: why EXTRACT accepts only date types ?

SQL92 specifies date, time, timestamp and interval.

Ciao, Jose'

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Maurice Gittens 1998-04-01 15:01:41 Memory leak while creating indices?
Previous Message Thomas G. Lockhart 1998-04-01 14:33:42 Re: [HACKERS] Re: [DOCS] Reference Manual