Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNHX8-0003vP-Q9 for pgsql-general@arkaria.postgresql.org; Wed, 23 Oct 2019 14:22:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iNHX7-0002s1-Lm for pgsql-general@arkaria.postgresql.org; Wed, 23 Oct 2019 14:22:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNHX7-0002ru-8m for pgsql-general@lists.postgresql.org; Wed, 23 Oct 2019 14:22:41 +0000 Received: from mx-us-phx-03.bmc.com ([198.147.194.158] helo=mx-us-phx-03-int.bmc.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iNHX0-0002RN-AX for pgsql-general@postgresql.org; Wed, 23 Oct 2019 14:22:39 +0000 Received: from pps.filterd (mx-us-phx-03-int.bmc.com [127.0.0.1]) by mx-us-phx-03-int.bmc.com (8.16.0.27/8.16.0.27) with SMTP id x9NEKJRp017343 for ; Wed, 23 Oct 2019 14:22:32 GMT Received: from phx-exmbprd-02.adprod.bmc.com (phx-exmbprd-02.adprod.bmc.com [172.24.33.167] (may be forged)) by mx-us-phx-03-int.bmc.com with ESMTP id 2vqqutm2ux-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 23 Oct 2019 14:22:32 +0000 Received: from PHX-EXMBPRD-01.adprod.bmc.com (172.24.35.196) by phx-exmbprd-02.adprod.bmc.com (172.24.33.167) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 23 Oct 2019 09:22:31 -0500 Received: from PHX-EXMBPRD-01.adprod.bmc.com ([172.24.31.226]) by phx-exmbprd-01.adprod.bmc.com ([172.24.31.226]) with mapi id 15.00.1497.000; Wed, 23 Oct 2019 09:22:31 -0500 From: "Abraham, Danny" To: "pgsql-general@postgresql.org" CC: "Abraham, Danny" Subject: date function bug Thread-Topic: date function bug Thread-Index: AdWJrPC3OnId1DgpQ5eV6IJjmm7S9Q== Date: Wed, 23 Oct 2019 14:22:31 +0000 Message-ID: <0bac35bcde6747e485bc7468c4080798@phx-exmbprd-01.adprod.bmc.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [137.72.191.128] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-23_03:,, signatures=0 X-Proofpoint-Spam-Reason: safe List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, The function "to_date" does not fail illegal values. Is this a known bug? What is the recommended type checking? ctrlmdb=3D> select to_date('2018100X','YYYYMMDD'); to_date ------------ 2018-10-01 (1 row)