pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anthony E. Greene <agreene@pobox.com>
To: pgsql-admin@postgresql.org
Subject: RE: how do I set DateStyle = European in postmaster ?
Date: Fri, 07 Jul 2000 17:18:50 +0200
Message-ID: <3.0.5.32.20000707171850.007c4e60@fmol.5sigcmd.army.mil> (raw)
In-Reply-To: <01BFE817.8D427D60@garys.ringways.co.uk>

At 13:30 2000-07-07 +0100, Gary Stainburn wrote:
>-----Original Message-----
>From:	Michael Holopainen [SMTP:michael@laserle.fi]
>Sent:	Friday, July 07, 2000 12:22 PM
>To:	Gary Stainburn
>Subject:	Re: [ADMIN] how do I set DateStyle = European in postmaster ?
>
>>OK, here is the script (the whole postgres script)
[snip]

I set the DateStyle in /etc/profile, which works for ISO, but not for
European. That may have to do with locale settings in the RPM I have
installed.

It's a lot simpler if it works for you. Just put this in /etc/profile:

  export PGDATESTYLE='European'

Since the postmaster script uses "su -l" it gets the environment, including
things setup in /etc/profile (assuming the postgres user's shell is bash).


 Tony
 --
 Anthony E. Greene <agreene@pobox.com>
 PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
 Linux: The choice of a GNU Generation.



view thread (6+ messages)

Message-ID: <3.0.5.32.20000707171850.007c4e60@fmol.5sigcmd.army.mil>
Permalink:  ../3.0.5.32.20000707171850.007c4e60@fmol.5sigcmd.army.mil/
Also on:    postgresql.org/message-id/3.0.5.32.20000707171850.007c4e60@fmol.5sigcmd.army.mil

 · 

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: agreene@pobox.com
  Subject: Re: how do I set DateStyle = European in postmaster ?
  In-Reply-To: <3.0.5.32.20000707171850.007c4e60@fmol.5sigcmd.army.mil>
  References: <01BFE817.8D427D60@garys.ringways.co.uk> <3.0.5.32.20000707171850.007c4e60@fmol.5sigcmd.army.mil>

* 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