Re: [DOCS] The IYYY mess again

2014-12-29 Thread Bruce Momjian
On Mon, Dec 29, 2014 at 10:06:09AM -0500, Tom Lane wrote: > In bug #12367 > http://www.postgresql.org/message-id/20141229031218.8013.51...@wrigleys.postgresql.org > we see yet another iteration of somebody trying to combine to_char's > IYYY specifier with regular Gregorian MM/DD fields. > > It occ

Re: [DOCS] The IYYY mess again

2014-12-29 Thread David Johnston
On Mon, Dec 29, 2014 at 12:12 PM, Tom Lane wrote: > David G Johnston writes: > > Tom Lane-2 wrote > >> There is a warning against combining IYYY with MM/DD, but it's buried > >> in trivia far down the page. > > > Can we move this warning/notice into code? Basically warn/disallow > > IYYY-MM-DD

Re: [DOCS] The IYYY mess again

2014-12-29 Thread Tom Lane
David G Johnston writes: > Tom Lane-2 wrote >> There is a warning against combining IYYY with MM/DD, but it's buried >> in trivia far down the page. > Can we move this warning/notice into code? Basically warn/disallow > IYYY-MM-DD (and similar) as a valid format? > And why not make it an error.

Re: [DOCS] The IYYY mess again

2014-12-29 Thread David G Johnston
Tom Lane-2 wrote > In bug #12367 > http://www.postgresql.org/message-id/ > 20141229031218.8013.51171@.postgresql > > There is a warning against combining IYYY with MM/DD, but it's buried > in trivia far down the page. Can we move this warning/notice into code? Basically warn/disallow IYYY-MM-D

Re: [DOCS] The IYYY mess again

2014-12-29 Thread Steve Atkins
On Dec 29, 2014, at 7:06 AM, Tom Lane wrote: > In bug #12367 > http://www.postgresql.org/message-id/20141229031218.8013.51...@wrigleys.postgresql.org > we see yet another iteration of somebody trying to combine to_char's > IYYY specifier with regular Gregorian MM/DD fields. > > It occurs to me

[DOCS] The IYYY mess again

2014-12-29 Thread Tom Lane
In bug #12367 http://www.postgresql.org/message-id/20141229031218.8013.51...@wrigleys.postgresql.org we see yet another iteration of somebody trying to combine to_char's IYYY specifier with regular Gregorian MM/DD fields. It occurs to me that this is largely our own fault, because the fine manual