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 1msrDv-00060M-8K for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Dec 2021 18:54:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1msrDu-0007ux-41 for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Dec 2021 18:54:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msrDt-0007uo-S6 for pgsql-bugs@lists.postgresql.org; Thu, 02 Dec 2021 18:54:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msrDr-0007Oo-P7 for pgsql-bugs@lists.postgresql.org; Thu, 02 Dec 2021 18:54:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1B2IsFdm2117961; Thu, 2 Dec 2021 13:54:15 -0500 From: Tom Lane To: nguyenkhacchinh@hotmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17305: to_timestamp accept dates rejected by timestamptz cast In-reply-to: <17305-f46fefde8303adf0@postgresql.org> References: <17305-f46fefde8303adf0@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 01 Dec 2021 13:59:30 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2117959.1638471255.1@sss.pgh.pa.us> Date: Thu, 02 Dec 2021 13:54:15 -0500 Message-ID: <2117960.1638471255@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > I don't know if this is a bug or just an unusual behavior. I had assumed, > per the documentation, that function to_timestamp() is the same as > timestamptz but with control for different formats. It is not, and I don't see the documentation claiming that it is. regards, tom lane