Re: Problem Setting DateStyle
От | Aaron Bono |
---|---|
Тема | Re: Problem Setting DateStyle |
Дата | |
Msg-id | bf05e51c0606261720o47c26ef0g573e0f008b086c72@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Problem Setting DateStyle (Scott Marlowe <smarlowe@g2switchworks.com>) |
Список | pgsql-admin |
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
-Aaron
On 6/26/06, Scott Marlowe <smarlowe@g2switchworks.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.
В списке pgsql-admin по дате отправления: