Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2841BB5DC69 for ; Tue, 12 Jul 2011 01:32:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 60047-03 for ; Tue, 12 Jul 2011 04:32:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 9154DB5DC65 for ; Tue, 12 Jul 2011 01:32:12 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p6C4WBPr035453 for ; Tue, 12 Jul 2011 04:32:11 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p6C4WBZJ035452; Tue, 12 Jul 2011 04:32:11 GMT (envelope-from www) Date: Tue, 12 Jul 2011 04:32:11 GMT Message-Id: <201107120432.p6C4WBZJ035452@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6113: SET DATESTYLE='European' does not set datestyle output correctly From: "David Carlos Manuelda" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201107/97 X-Sequence-Number: 30709 The following bug has been logged online: Bug reference: 6113 Logged by: David Carlos Manuelda Email address: StormByte@gmail.com PostgreSQL version: 9.0.4 Operating system: Gentoo Linux Description: SET DATESTYLE='European' does not set datestyle output correctly Details: According to Doc (http://www.postgresql.org/docs/7.2/static/sql-set.html), there are different datestyles available to format date outputs. But either is a bug in doc or is a bug in postgre itself, but 'European' does not currently do what it is intended (it does nothing actually). From documentation: Testcase 1: OK German Use dd.mm.yyyy for numeric date representations. SET DATESTYLE='German'; SELECT NOW()::DATE; now ------------ 12.07.2011 Testcase 2: FAIL! SET DATESTYLE='European'; SELECT NOW()::DATE; now ------------ 12.07.2011 As you can see, SET DATESTYLE='European' just did nothing and did not change it from last set which was 'German', and of course, it does not even outputs what was expected and stated in documentation.