pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Default settings
5+ messages / 5 participants
[nested] [flat]

* Default settings
@ 2002-08-05 12:42  Martins Zarins <Martins.Zarins@vestnesis.lv>
  0 siblings, 0 replies; 5+ messages in thread

From: Martins Zarins @ 2002-08-05 12:42 UTC (permalink / raw)
  To: pgsql-admin

Hello all!

HOWTO save (is this posible at all?) subj?
everytime I run psql I must write "set datestyle to german;"
Where I can set this variable for all databases on my server forever?

Mark.



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Default settings
@ 2002-08-05 13:53  Martins Zarins <mark@vestnesis.lv>
  0 siblings, 1 reply; 5+ messages in thread

From: Martins Zarins @ 2002-08-05 13:53 UTC (permalink / raw)
  To: pgsql-admin

Hello all!

HOWTO save (is this posible at all?) subj?
everytime I run psql I must write "set datestyle to german;"
Where I can set this variable for all databases on my server forever?

Mark.





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Default settings
@ 2002-08-05 14:23  Stephan Szabo <sszabo@megazone23.bigpanda.com>
  parent: Martins Zarins <mark@vestnesis.lv>
  0 siblings, 2 replies; 5+ messages in thread

From: Stephan Szabo @ 2002-08-05 14:23 UTC (permalink / raw)
  To: Martins Zarins <mark@vestnesis.lv>; +Cc: pgsql-admin


On Mon, 5 Aug 2002, Martins Zarins wrote:

> Hello all!
>
> HOWTO save (is this posible at all?) subj?
> everytime I run psql I must write "set datestyle to german;"
> Where I can set this variable for all databases on my server forever?

I believe datestyle has an entry in postgresql.conf.





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Default settings
@ 2002-08-05 14:32  Nick Fankhauser <nickf@ontko.com>
  parent: Stephan Szabo <sszabo@megazone23.bigpanda.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Nick Fankhauser @ 2002-08-05 14:32 UTC (permalink / raw)
  To: Stephan Szabo <sszabo@megazone23.bigpanda.com>; Martins Zarins <mark@vestnesis.lv>; +Cc: pgsql-admin

Actually, I think this is an environment variable, so you'd want to set it
up so the postgres user gets it before starting the postmaster.
(PGDATESTYLE=)

If you are running the Debian Linux package, it can be set in
postmaster.conf, but AFAIK, that file doesn't exist in other distributions
or the source.

Details here:
http://www.postgresql.org/idocs/index.php?libpq-envars.html

-Nick

--------------------------------------------------------------------------
Nick Fankhauser  nickf@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/

> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Stephan Szabo
> Sent: Monday, August 05, 2002 9:24 AM
> To: Martins Zarins
> Cc: pgsql-admin@postgresql.org
> Subject: Re: [ADMIN] Default settings
>
>
>
> On Mon, 5 Aug 2002, Martins Zarins wrote:
>
> > Hello all!
> >
> > HOWTO save (is this posible at all?) subj?
> > everytime I run psql I must write "set datestyle to german;"
> > Where I can set this variable for all databases on my server forever?
>
> I believe datestyle has an entry in postgresql.conf.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Default settings
@ 2002-08-05 14:37  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Stephan Szabo <sszabo@megazone23.bigpanda.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Tom Lane @ 2002-08-05 14:37 UTC (permalink / raw)
  To: Stephan Szabo <sszabo@megazone23.bigpanda.com>; +Cc: Martins Zarins <mark@vestnesis.lv>; pgsql-admin

Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> I believe datestyle has an entry in postgresql.conf.

It will in 7.3, but in prior releases you have to fool with some
environment variable or other (I think PGDATESTYLE, but check the
manual).

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2002-08-05 14:37 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-08-05 12:42 Default settings Martins Zarins <Martins.Zarins@vestnesis.lv>
2002-08-05 13:53 Default settings Martins Zarins <mark@vestnesis.lv>
2002-08-05 14:23 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2002-08-05 14:32   ` Nick Fankhauser <nickf@ontko.com>
2002-08-05 14:37   ` Tom Lane <tgl@sss.pgh.pa.us>

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