Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tBbkP-004xFX-Mp for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Nov 2024 15:27:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tBbkM-005DaA-8b for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Nov 2024 15:27:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tBbjI-005B7O-SX for pgsql-bugs@lists.postgresql.org; Thu, 14 Nov 2024 15:25:57 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tBbjB-001v6G-Mo for pgsql-bugs@lists.postgresql.org; Thu, 14 Nov 2024 15:25:56 +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 4AEFPmO21936219; Thu, 14 Nov 2024 10:25:48 -0500 From: Tom Lane To: dhyan@nataraj.su cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18708: regex problem: (?:[^\d\D]){0} asserts with "lp->nouts == 0 && rp->nins == 0" In-reply-to: <18708-f94f2599c9d2c005@postgresql.org> References: <18708-f94f2599c9d2c005@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Thu, 14 Nov 2024 12:29:12 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1936217.1731597948.1@sss.pgh.pa.us> Date: Thu, 14 Nov 2024 10:25:48 -0500 Message-ID: <1936218.1731597948@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: > If you run > SELECT '' ~ '(?:[^\d\D]){0}'; > it will assert with "lp->nouts == 0 && rp->nins == 0" > This behavior have been introduced in 2a0af7fe460 commit. Thanks for the report --- I'll dig into this later. regards, tom lane