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 A956F56376 for ; Wed, 9 Mar 2005 07:20:18 +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 83919-02 for ; Wed, 9 Mar 2005 07:20:08 +0000 (GMT) Received: from sharp.noc24x7.com (unknown [69.56.128.138]) by svr1.postgresql.org (Postfix) with ESMTP id CFAFF56457 for ; Wed, 9 Mar 2005 07:20:08 +0000 (GMT) Received: from [61.3.110.136] (helo=thenilgiris.web) by sharp.noc24x7.com with esmtp (Exim 4.44) id 1D8vUG-0005Ti-Vc; Wed, 09 Mar 2005 12:50:09 +0530 Received: by thenilgiris.web (Postfix, from userid 500) id F19475BAC4; Wed, 9 Mar 2005 12:51:25 +0530 (IST) From: Kenneth Gonsalves To: Tom Lane Subject: Re: datestyle setting Date: Wed, 9 Mar 2005 12:51:25 +0530 User-Agent: KMail/1.6.1 Cc: PostgreSQL SQL References: <200503091135.55033.lawgon@thenilgiris.com> <20765.1110349646@sss.pgh.pa.us> In-Reply-To: <20765.1110349646@sss.pgh.pa.us> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <200503091251.25413.lawgon@thenilgiris.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sharp.noc24x7.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thenilgiris.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.129 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/138 X-Sequence-Number: 20617 On Wednesday 09 Mar 2005 11:57 am, Tom Lane wrote: > Kenneth Gonsalves writes: > > i have a website with a postgresql backend. Being a shared site, > > i have no root access. i do have shell access to the database, > > but cannot create or drop the database. I access the database > > through python scripts using the psycopg adapter. My question is, > > how do i set the pgdatestyle in the database as 'European,sql'? > > 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' =2D-=20 regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.sourceforge.net =E0=B2=87=E0=B2=82=E0=B2=A1=E0=B3=8D=E0=B2=B2=E0=B2=BF=E0=B2=A8=E0=B2=95=E0= =B3=8D=E0=B2=B8 =E0=AE=B5=E0=AE=BE=E0=AE=B4=E0=AF=8D=E0=AE=95!