pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy <frum@ar-sd.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem Setting DateStyle
Date: Mon, 26 Jun 2006 18:15:20 +0300
Message-ID: <003801c69933$58bad960$0b00a8c0@mpsro.dom> (raw)
References: <014601c69928$3dd35740$0b00a8c0@mpsro.dom>
	<29135.1151333441@sss.pgh.pa.us>

Steps:
1.
show datestyle
      DateStyle
      ISO, DMY


2.
set datestyle to 'SQL, DMY';
show datestyle;
      DateStyle
      SQL, DMY

>>>>>>>>>> this should be the good result.

Now the tries:
Edit the postgresql.conf. Set datestyle = 'SQL, DMY' parameter. Restart the 
DB server.
show datestyle
      DateStyle
      ISO, DMY

... there is no change.

the other try:
alter database test2 set datestyle to 'SQL, DMY';
SQL executed.
show datestyle
      DateStyle
      ISO, DMY


the same...

Am I missing something??? If I set
set datestyle to 'SQL, DMY' in a connection session then it works well for 
that session.

I need this type of format:
      auftragsdatum
      27/06/2005
      27/06/2005
      27/06/2005
      27/06/2005
      27/06/2005
      27/06/2005
      21/11/2005
      09/12/2005
      07/07/2005
      29/06/2005


I don't know what am I missing in the configuration.
I attach the postgres.conf.


Best regards,
Andy.




----- Original Message ----- 
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Andy" <frum@ar-sd.net>
Cc: <pgsql-admin@postgresql.org>
Sent: Monday, June 26, 2006 5:50 PM
Subject: Re: [ADMIN] Problem Setting DateStyle


> "Andy" <frum@ar-sd.net> writes:
>> I tried to modify it in postgres.conf >>> datestyle = 'European' or
>> datestyle = 'SQL, DMY'
>> and I tried to make
>> alter database test5 SET DateStyle='SQL, DMY';
>
>> .... none of these worked.
>
> They work for me.  Perhaps you should show us exactly what you did and
> what happened.
>
> regards, tom lane
>
> 

Attachments:

  postgresql.conf (application/octet-stream, 11.6K) download

view thread (7+ messages)  latest in thread

Message-ID: <003801c69933$58bad960$0b00a8c0@mpsro.dom>
Permalink:  ../003801c69933$58bad960$0b00a8c0@mpsro.dom/
Also on:    postgresql.org/message-id/003801c69933$58bad960$0b00a8c0@mpsro.dom

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: frum@ar-sd.net, tgl@sss.pgh.pa.us
  Subject: Re: Problem Setting DateStyle
  In-Reply-To: <003801c69933$58bad960$0b00a8c0@mpsro.dom>
  References: <014601c69928$3dd35740$0b00a8c0@mpsro.dom> <29135.1151333441@sss.pgh.pa.us> <003801c69933$58bad960$0b00a8c0@mpsro.dom>

* 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