pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mattias Norlander <mattias@umc.se>
To: Strand Johan F. <johan.f.strand@telia.se>
Cc: pgsql-admin@postgreSQL.org
Subject: Re: [ADMIN] Datetypes
Date: 12 Jan 2000 14:48:09 +0100
Message-ID: <86iu0z2yg6.fsf@umc.se> (raw)
References: <266FDEFCF2BD22479AC88FCEBF070CBFA5BA@HAN1EXCH01.se.ads.telia.se>

I use this to start up my postmaster:

su - postgres -c 'export PGDATESTYLE=ISO; postmaster -N 32 -B 256 -i -o "-S 16535 -F" 2>>/var/log/pglog >>/var/log/pglog' >>/dev/null&

... which sets the datestyle to ISO.

There is also a sql command called "SET DATESTYLE" but I can't get it to work though...

"Strand Johan F." <johan.f.strand@telia.se> writes:

> Hello there !
> 
> How do I do if I want to change the variable
> DATETYPES or PGDATESTYLE to ISO.
> I want to se my date column like this 2000-01-12
> and not 01-12-2000 when I do a select on it.
> 
> Thanks
> 
> /Johan
> johan.f.strand@telia.se
> 
> ************
> 
> 
> 

-- 
Mattias Norlander
mattias@umc.se




view thread (3+ messages)  latest in thread

Message-ID: <86iu0z2yg6.fsf@umc.se>
Permalink:  ../86iu0z2yg6.fsf@umc.se/
Also on:    postgresql.org/message-id/86iu0z2yg6.fsf@umc.se

 · 

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: mattias@umc.se, johan.f.strand@telia.se
  Subject: Re: [ADMIN] Datetypes
  In-Reply-To: <86iu0z2yg6.fsf@umc.se>
  References: <266FDEFCF2BD22479AC88FCEBF070CBFA5BA@HAN1EXCH01.se.ads.telia.se> <86iu0z2yg6.fsf@umc.se>

* 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