Re: Possibly misleading documentation of Template Patterns for Date/Time Formatting - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Possibly misleading documentation of Template Patterns for Date/Time Formatting
Date
Msg-id 26842.1587303735@sss.pgh.pa.us
Whole thread Raw
In response to Re: Possibly misleading documentation of Template Patterns forDate/Time Formatting  (David Kubecka <davidkubecka366@gmail.com>)
Responses Re: Possibly misleading documentation of Template Patterns forDate/Time Formatting
List pgsql-bugs
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.

            regards, tom lane



pgsql-bugs by date:

Previous
From: David Kubecka
Date:
Subject: Re: Possibly misleading documentation of Template Patterns forDate/Time Formatting
Next
From: Hritik Gupta
Date:
Subject: Re: BUG #16373: Behavior of Temporary table creation