pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kenneth Gonsalves <lawgon@thenilgiris.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL SQL <pgsql-sql@postgresql.org>
Subject: Re: datestyle setting
Date: Wed, 9 Mar 2005 12:51:25 +0530
Message-ID: <200503091251.25413.lawgon@thenilgiris.com> (raw)
In-Reply-To: <20765.1110349646@sss.pgh.pa.us>
References: <200503091135.55033.lawgon@thenilgiris.com>
	<20765.1110349646@sss.pgh.pa.us>

On Wednesday 09 Mar 2005 11:57 am, Tom Lane wrote:
> Kenneth Gonsalves <lawgon@thenilgiris.com> 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'
-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.sourceforge.net
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!



view thread (6+ messages)  latest in thread

Message-ID: <200503091251.25413.lawgon@thenilgiris.com>
Permalink:  ../200503091251.25413.lawgon@thenilgiris.com/
Also on:    postgresql.org/message-id/200503091251.25413.lawgon@thenilgiris.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lawgon@thenilgiris.com, tgl@sss.pgh.pa.us
  Subject: Re: datestyle setting
  In-Reply-To: <200503091251.25413.lawgon@thenilgiris.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox