Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Txtck-0002gJ-RV for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jan 2013 06:15:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Txtcj-0002dv-Hb for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jan 2013 06:15:49 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Txkdz-0000vq-Vc for pgsql-bugs@postgresql.org; Tue, 22 Jan 2013 20:40:32 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Txkdy-0003OR-TV for pgsql-bugs@postgresql.org; Tue, 22 Jan 2013 20:40:31 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Txkdy-0005Xy-K4 for pgsql-bugs@postgresql.org; Tue, 22 Jan 2013 20:40:30 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1Txkdy-0006X2-8a for pgsql-bugs@postgresql.org; Tue, 22 Jan 2013 20:40:30 +0000 Date: Tue, 22 Jan 2013 20:40:30 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7824: documentation bug: Extract DOW To: pgsql-bugs@postgresql.org From: tim.romano@yahoo.com X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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:=20=20=20=20=20=20=20=20 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=20 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 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs