Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQADF-0002eo-Og for pgsql-bugs@arkaria.postgresql.org; Sun, 19 Apr 2020 13:42:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jQADE-0003D1-Jp for pgsql-bugs@arkaria.postgresql.org; Sun, 19 Apr 2020 13:42:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQADE-0003Cu-Dc for pgsql-bugs@lists.postgresql.org; Sun, 19 Apr 2020 13:42:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQADC-0001d8-4P for pgsql-bugs@postgresql.org; Sun, 19 Apr 2020 13:42:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 03JDgFn0026843; Sun, 19 Apr 2020 09:42:15 -0400 From: Tom Lane To: David Kubecka cc: pgsql-bugs@postgresql.org Subject: Re: Possibly misleading documentation of Template Patterns for Date/Time Formatting In-reply-to: References: <4089.1587138728@sss.pgh.pa.us> Comments: In-reply-to David Kubecka message dated "Sun, 19 Apr 2020 10:19:19 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26841.1587303735.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 19 Apr 2020 09:42:15 -0400 Message-ID: <26842.1587303735@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Kubecka writes: > Anyway, could you shed some light if there's any particular reason why T= O_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