output format for dates - Mailing list pgsql-general

From am@fx.ro
Subject output format for dates
Date
Msg-id 20020923110204.A4629@coto
Whole thread Raw
Responses Re: output format for dates
List pgsql-general
>
>So, here comes my question:  is it possible to create a new
>custom datestyle and set it as default ?

Browsing the sources, i've found a function EncodeDateOnly() in
src/backend/utils/adt which seems to be the function that generates
strings representing dates.

It seems easy to add a 'case' statement for a new datestyle.
But, i guess that won't be enough.

Where else should I add the new datestyle, so that i'll be able to
use it with SET DATESTYLE ?


Thanks in advance,
Adrian Maier (am@fx.ro)


pgsql-general by date:

Previous
From: Yury Bokhoncovich
Date:
Subject: Re: Open Source Database article
Next
From: Richard Huxton
Date:
Subject: Re: Tips for re-using function results within single insert