pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Cris Carampa <cris119@operamail.com>
To: pgsql-sql@postgresql.org
Subject: Re: setting a non-standard date format for the duration of a session
Date: Sat, 10 Apr 2004 08:19:19 -0700
Message-ID: <200404100819.19580.josh@agliodbs.com> (raw)
In-Reply-To: <c50t9n$s8v$1@floppy.pyrenet.fr>
References: <c50t9n$s8v$1@floppy.pyrenet.fr>

Cris,

> I understand I can use the function to_date(s,f) for converting a string
>   into a date using a non-standard format.
>
> I'm wondering if there is a way to set a non-standard date format for
> the duration of a session, something like the "ALTER SESSION SET
> NLS_DATE_FORMAT='f'" Oracle statement.

Sort of.   See the Docs on "Runtime Configuration" on the GUC variable 
"Datestyle".

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (2+ messages)

Message-ID: <200404100819.19580.josh@agliodbs.com>
Permalink:  ../200404100819.19580.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200404100819.19580.josh@agliodbs.com

 · 

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-sql@postgresql.org
  Cc: josh@agliodbs.com, cris119@operamail.com
  Subject: Re: setting a non-standard date format for the duration of a session
  In-Reply-To: <200404100819.19580.josh@agliodbs.com>

* 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