Re: [HACKERS] proposal - custom format for date, timestamp

2010-06-02 Thread Pavel Stehule
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 var

Re: [HACKERS] proposal - custom format for date, timestamp

2010-06-02 Thread 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 = 'cu

[HACKERS] proposal - custom format for date, timestamp

2010-06-02 Thread Pavel Stehule
Hello 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 There are some questions: a) what is good behave when datestyle = custom, but some necessary