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 50F79563DE for ; Wed, 9 Mar 2005 06:27:37 +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 64739-09 for ; Wed, 9 Mar 2005 06:27:27 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 571E8560F2 for ; Wed, 9 Mar 2005 06:27:26 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j296RQi7020766; Wed, 9 Mar 2005 01:27:27 -0500 (EST) To: Kenneth Gonsalves Cc: PostgreSQL SQL Subject: Re: datestyle setting In-reply-to: <200503091135.55033.lawgon@thenilgiris.com> References: <200503091135.55033.lawgon@thenilgiris.com> Comments: In-reply-to Kenneth Gonsalves message dated "Wed, 09 Mar 2005 11:35:55 +0530" Date: Wed, 09 Mar 2005 01:27:26 -0500 Message-ID: <20765.1110349646@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/137 X-Sequence-Number: 20616 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. regards, tom lane