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 1nhI6Z-0002L1-IP for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Apr 2022 21:43:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nhI6Y-0003N9-6Z for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Apr 2022 21:43:18 +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 1nhI6X-0003Me-U4 for pgsql-bugs@lists.postgresql.org; Wed, 20 Apr 2022 21:43:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhI6S-0005rP-LP for pgsql-bugs@lists.postgresql.org; Wed, 20 Apr 2022 21:43:17 +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 23KLh9dm3010354; Wed, 20 Apr 2022 17:43:09 -0400 From: Tom Lane To: Pavel Stehule cc: Richard Wesley , PostgreSQL mailing lists Subject: Re: Query generates infinite loop In-reply-to: <2842828.1650474225@sss.pgh.pa.us> References: <91B44E7B-68D5-448F-95C8-B4B3B0F5DEAF@duckdblabs.com> <2842828.1650474225@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 20 Apr 2022 13:03:45 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3010352.1650490989.1@sss.pgh.pa.us> Date: Wed, 20 Apr 2022 17:43:09 -0400 Message-ID: <3010353.1650490989@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > it's true that infinities as generate_series endpoints are going > to work pretty oddly, so I agree with the idea of forbidding 'em. > Numeric has infinity as of late, so the numeric variant would > need to do this too. Oh --- looks like numeric generate_series() already throws error for this, so we should just make the timestamp variants do the same. regards, tom lane