Re: datestyle setting - Mailing list pgsql-sql

From Richard Huxton
Subject Re: datestyle setting
Date
Msg-id 422EAF5C.1070305@archonet.com
Whole thread Raw
In response to Re: datestyle setting  (Kenneth Gonsalves <lawgon@thenilgiris.com>)
Responses Re: datestyle setting
List pgsql-sql
Kenneth Gonsalves wrote:
> On Wednesday 09 Mar 2005 11:57 am, Tom Lane wrote:
>>
>>If it's a reasonably recent version of PG, either ALTER DATABASE
>>SET or ALTER USER SET might serve.
> 
> 
> postgresql 7.4. when i type:
> 
> alter database set datestyle to 'European'
> 
> i get 'syntax error at or near "datestyle" at character 20'

I keep making this mistake, you need to include the database name:  ALTER DATABASE my_db_name SET datestyle TO 'ISO';

--   Richard Huxton  Archonet Ltd


pgsql-sql by date:

Previous
From: Kenneth Gonsalves
Date:
Subject: Re: datestyle setting
Next
From: "Fatih Cerit"
Date:
Subject: interval +variable