Re: proposal - custom format for date, timestamp

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal - custom format for date, timestamp
Date: 2010-06-02 15:47:22
Message-ID: AANLkTinJJhj7jldiRAp_MeFafEY4JsXYmsV4thQmuIn9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2010/6/2 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
>> I thinking about request on custom datetime format. My first idea is:
>
>> a) add new datestyle format "custom"
>> b) add new GUC variables - custom_date_format, custom_time_format,
>> custom_timestamp_format
>
> Ick.  Why not just put them in one variable.
>        datestyle = 'custom yyyy mm dd'
> Interrelated GUCs are really painful.

I understand, but personally I dislike mix two different values - name
and format together. And what more - we need separate formats for
date, time and timestamp. It is differnet than Oracle because Oracle
uses only one datatype for all.

Regards
Pavel
>
>                        regards, tom lane
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2010-06-02 16:41:53 Re: Keepalive for max_standby_delay
Previous Message Kevin Grittner 2010-06-02 14:45:42 Re: CommitFest FAQ (was: dividing money by money)