ne 19. 4. 2020 v 15:42 odesílatel Tom Lane <tgl@sss.pgh.pa.us> napsal:
David Kubecka <davidkubecka366@gmail.com> writes: > Anyway, could you shed some light if there's any particular reason why TO_DATE( > '2012-4', 'YYYY-Q' ) isn't supported?
You can't compute a specific date from that. Nor does it lend itself to combination with other fields to reach a specific date --- adding DD doesn't do it, and if you add MM, you might as well not bother with Q.
I think you very well could if it works e.g. for months: TO_DATE( '2012-4', 'YYYY-MM' ) returns first date of the specified month, so Q could behave similarly.
Anyway, this is obviously not a big issue, just a minor inconvenience ;-)