pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Lockhart <lockhart@alumni.caltech.edu>
To: George P. Esperanza <george@calamba.laguna.net>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Changing Default date format
Date: Fri, 28 Jul 2000 02:48:37 +0000
Message-ID: <3980F485.93FB698D@alumni.caltech.edu> (raw)
References: <Pine.LNX.4.05.10007271629130.9538-100000@calamba.laguna.net>

> How do i change the default (ISO) date/time format to (Postgres) format?
> I need to 'SET DATESTYLE TO Postgres' for every session, is there a way
> to set this permanently?

http://postgresql.org/docs/postgres/x1137.htm sez:

There are several ways to affect the appearance of date/time types: 

 The PGDATESTYLE environment variable used by the backend
 directly on postmaster startup. 

 The PGDATESTYLE environment variable used by the frontend
 libpq on session startup. 

 SET DATESTYLE SQL command. 


These should be sufficient. You can also adjust a #define in a header
file and rebuild Postgres. Look for something with "DATESTYLE" in the
include directories.

                     - Thomas



view thread (2+ messages)

Message-ID: <3980F485.93FB698D@alumni.caltech.edu>
Permalink:  ../3980F485.93FB698D@alumni.caltech.edu/
Also on:    postgresql.org/message-id/3980F485.93FB698D@alumni.caltech.edu

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: lockhart@alumni.caltech.edu, george@calamba.laguna.net
  Subject: Re: Changing Default date format
  In-Reply-To: <3980F485.93FB698D@alumni.caltech.edu>

* 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