X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E4F6B56391 for ; Wed, 9 Mar 2005 09:57:38 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 42984-04 for ; Wed, 9 Mar 2005 09:57:31 +0000 (GMT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id 306FF563E0 for ; Wed, 9 Mar 2005 09:57:30 +0000 (GMT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 4.42) id 1D8xwZ-000Ojq-Em; Wed, 09 Mar 2005 09:57:31 +0000 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 5BAD017351; Wed, 9 Mar 2005 09:57:30 +0000 (GMT) Message-ID: <422EC889.2070900@archonet.com> Date: Wed, 09 Mar 2005 09:57:29 +0000 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kenneth Gonsalves Cc: Tom Lane , PostgreSQL SQL Subject: Re: datestyle setting References: <200503091135.55033.lawgon@thenilgiris.com> <200503091251.25413.lawgon@thenilgiris.com> <422EAF5C.1070305@archonet.com> <200503091517.20691.lawgon@thenilgiris.com> In-Reply-To: <200503091517.20691.lawgon@thenilgiris.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.166 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200503/143 X-Sequence-Number: 20622 Kenneth Gonsalves wrote: > On Wednesday 09 Mar 2005 1:40 pm, Richard Huxton wrote: > > >>I keep making this mistake, you need to include the database name: >> ALTER DATABASE my_db_name SET datestyle TO 'ISO'; > > > er ... doesnt seem to be in the docs? Anyway it worked, thanx http://www.postgresql.org/docs/7.4/static/sql-alterdatabase.html Synopsis ALTER DATABASE name SET parameter { TO | = } { value | DEFAULT } ALTER DATABASE name RESET parameter -- Richard Huxton Archonet Ltd