Re: ecmascript 5 DATESTYLE
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: ben hockey <neonstalwart@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Robert Haas <robertmhaas@gmail.com>, Mike Fowler <mike@mlfowler.com>, Peter Eisentraut <peter_e@gmx.net>, pgsql-hackers@postgresql.org
Date: 2011-12-06T20:58:41Z
Lists: pgsql-hackers
2011/12/6 ben hockey <neonstalwart@gmail.com>: > > On 12/6/2011 3:20 PM, Pavel Stehule wrote: >> >> >> I am for ECMA datestyle >> >> it is there but just is not public, if I remember well >> >> Theoretically some custom output/input transform routine can be very >> interesting - for domains, for boolean type - but on second hand - the >> usage of this feature is minimal and there is risk for less advanced >> users - so ECMA datestyle is very adequate solution. >> >> Regards >> >> Pavel >> > i don't particularly need anything other than ECMA datestyle - i was just > under the impression that a more generic solution was preferred. so, ECMA > is enough to stop me from making any more noise about this. a general solution is not simple - there is possible a SQL injection and therefore result must be escaped, and it means some overhead else - is very common a good style to use functions to_char, to_date or to_timestamp functions. Then your application will be more robust. Using default datestyle is user friendly technique, but it can be source of some issues - is better don't use it for large and complex application. Regards Pavel > > pavel, is there a way i can use this currently? if not, would it take much > effort to make this public? > > thanks, > > ben...