pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tim.romano@yahoo.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7824: documentation bug: Extract DOW
Date: Tue, 22 Jan 2013 20:40:30 +0000
Message-ID: <E1Txkdy-0006X2-8a@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      7824
Logged by:          Tim Romano
Email address:      tim.romano@yahoo.com
PostgreSQL version: 9.2.2
Operating system:   Windows 7 x64
Description:        

Documentation seems to indicate that only a Timestamp value is a valid
argument to the Extract function when trying to get the DOW, but a Date also
works:

dow 
The day of the week (0 - 6; Sunday is 0) (for timestamp values only)

SELECT EXTRACT(DOW FROM TIMESTAMP '2001-02-16 20:38:40'); Result: 5



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)  latest in thread

Message-ID: <E1Txkdy-0006X2-8a@wrigleys.postgresql.org>
Permalink:  ../E1Txkdy-0006X2-8a@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1Txkdy-0006X2-8a@wrigleys.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tim.romano@yahoo.com
  Subject: Re: BUG #7824: documentation bug: Extract DOW
  In-Reply-To: <E1Txkdy-0006X2-8a@wrigleys.postgresql.org>
  References: <E1Txkdy-0006X2-8a@wrigleys.postgresql.org>

* 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