On Wed, Jul 15, 2026 at 5:11 AM jian he <[email protected]> wrote: > src8=# select cast('2012-13-12' as date format 'YYYY-MM-DD' ); > ERROR: date/time field value out of range: "2012-13-12" > > With this example, I hope I've convinced you that it's still worthwhile to > have > the parser build a FuncExpr for CAST ... FORMAT, even though that same > FuncExpr > could otherwise be produced by calling the to_* function directly.
How does this show that? Why not just call the to_* function directly? -- Robert Haas EDB: http://www.enterprisedb.com
