Re: proposal - custom format for date, timestamp

Поиск
Список
Период
Сортировка
Искать
От
Pavel Stehule
Тема
Re: proposal - custom format for date, timestamp
Дата
Msg-id
AANLkTinJJhj7jldiRAp_MeFafEY4JsXYmsV4thQmuIn9@mail.gmail.com
Ответ на
Список
Дерево обсуждения
proposal - custom format for date, timestamp Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal - custom format for date, timestamp Tom Lane <tgl@sss.pgh.pa.us>
Re: proposal - custom format for date, timestamp Pavel Stehule <pavel.stehule@gmail.com>
2010/6/2 Tom Lane :
> Pavel Stehule  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
>

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Simon Riggs
Дата:
FAQ