Re: [SOLVED] Problem Setting DateStyle

From: "Andy" <frum(at)ar-sd(dot)net>
To: "Aaron Bono" <postgresql(at)aranya(dot)com>, "Scott Marlowe" <smarlowe(at)g2switchworks(dot)com>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: [SOLVED] Problem Setting DateStyle
Date: 2006-06-27 07:12:03
Message-ID: 008b01c699b8$fee9df90$0b00a8c0@mpsro.dom
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ups, sorry folks,

I use pgadmin3 for database access and it seems that it executes SET DateStyle=ISO; every time it connects.
Same with phppgadmin4. If i connect with psql then it works fine.

Anyway good to know.

Best regards,
Andy.

----- Original Message -----
From: Aaron Bono
To: Scott Marlowe
Cc: Andy ; Tom Lane ; pgsql-admin(at)postgresql(dot)org
Sent: Tuesday, June 27, 2006 3:20 AM
Subject: Re: [ADMIN] Problem Setting DateStyle

Also, and I know this sounds stupid, you may check to see if the database really restarted. I recently got a new server and for some reason when I use the restart script found in /etc/init.d/postgres it doesn't actually restart the server (the shutdown fails) but when I go to the control panel installed by my ISP it restarts wonderfully. I saw what was happening when I looked at the date the postgres process started.

-Aaron

On 6/26/06, Scott Marlowe <smarlowe(at)g2switchworks(dot)com> wrote:
On Mon, 2006-06-26 at 10:15, Andy wrote:
> 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...

Have you set a date style for this particular database (not the cluster)
with an alter database statement before?

I'd try to alter the database to have a certain datestyle and see if
that helps.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Dennis Wagner 2006-06-27 08:13:40 Re: Using GUIDs
Previous Message Aaron Bono 2006-06-27 00:48:32 Re: Hiding table structure information