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 1t2zaA-009Jdn-ON for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Oct 2024 21:04:54 +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 1t2za8-00BYAc-Et for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Oct 2024 21:04:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t2za8-00BYAU-6m for pgsql-bugs@lists.postgresql.org; Mon, 21 Oct 2024 21:04:52 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t2za5-0026p0-PH for pgsql-bugs@lists.postgresql.org; Mon, 21 Oct 2024 21:04:51 +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 49LL4mGm1731238; Mon, 21 Oct 2024 17:04:48 -0400 From: Tom Lane To: Alexey Shishkin cc: "David G. Johnston" , "pgsql-bugs@lists.postgresql.org" Subject: Re: pg_ident.conf + regular expressions issue In-reply-to: References: <1556449.1729522277@sss.pgh.pa.us> <1565682.1729525743@sss.pgh.pa.us> <1721216.1729539597@sss.pgh.pa.us> Comments: In-reply-to Alexey Shishkin message dated "Mon, 21 Oct 2024 22:58:12 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1731236.1729544688.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 21 Oct 2024 17:04:48 -0400 Message-ID: <1731237.1729544688@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexey Shishkin writes: > OK, what we have is: > "(?c)^(.*SMOKEYBEAR)$" does not match "smokeybear" > and at the same time: > "(?i)^(.*SMOKEYBEAR)$" does match "smokeybear" > How the latter is possible ? Uh, that's the entire point of the "i" flag, no? See about embedded options here: https://www.postgresql.org/docs/current/functions-matching.html#POSIX-META= SYNTAX regards, tom lane