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 1r1y9S-00EVPW-1a for pgsql-general@arkaria.postgresql.org; Sun, 12 Nov 2023 00:16:34 +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 1r1y9Q-008lfO-Jb for pgsql-general@arkaria.postgresql.org; Sun, 12 Nov 2023 00:16:32 +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 1r1y9O-008leu-S6 for pgsql-general@lists.postgresql.org; Sun, 12 Nov 2023 00:16:32 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r1y9K-005yHz-Am for pgsql-general@lists.postgresql.org; Sun, 12 Nov 2023 00:16:30 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 9D742320029B; Sat, 11 Nov 2023 19:16:22 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 11 Nov 2023 19:16:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1699748182; x=1699834582; bh=wkyjaddcBB1QB6hA12shgz/w2+aWOF3J+/p Uh3pr2Ic=; b=j7zkxpTmdiq7qtzimcdlf3D/4S9x8XM6gcmHbR0URci8KR1uYiK KscluqWjYalkLgG6DqoCLtFvasYQ6J86N7HZmfxqKdzujNgW6PHFa3QSVj3Vs4ke Kpwo9cPAwAGj1M/zd+lJGz4NY6rp4PmJGsJxXkHVCui3hkkBJ8jiGUSdpMiHLx4T P52kOMJF1c0COujdZspJoYMOmnHhHYz0FH5syoHEhxlqwEpJ3spDBJAJoxRYoK/F aGupsJ9V3dHiVgv+DrOi3UhchaeNpjCBFDhIAMmEhs5Z6Rgh3KTiCUwloLmks1Gw dxTACEVg47cyCaELI1TRNcVVfnnmMeIkxGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1699748182; x= 1699834582; bh=wkyjaddcBB1QB6hA12shgz/w2+aWOF3J+/pUh3pr2Ic=; b=H xIS9KZNaIhaaLy29taJjB3QBjClhyrBXqV6fRraRoFa4fYMWjwXBXYDHSsKyFgT8 BZjTMxP+LD4LzHAUQvf8l8HZVoll7jDUDsCHJEQ1VuGuKeheRXKYSPEzIO0dH+9i QCEkTOoWLLi+84fX3JseRaVvOyzAAI08Y7M5dnLdohMXrdXKB92EazDxj6wBCOtw sLuy1qh4ZeLDOOnLmnzI2d0vMN7CjuiFDCp3FBlc5IkkS4kmUva049KwopJKTzLB 9R47+7iX/kNmcDrrjSv069ywAFZxA2VEX2azMx2/KGoEteOpBJRCCE4bly6papcD 9nXqL3LQbV2Ritp/gWvRw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddviedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepkeefheduvd ejiefgieefjedtudduffelvdefleehfedtieffuefgvdekleegtddvnecuffhomhgrihhn pehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgt ohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 11 Nov 2023 19:16:21 -0500 (EST) Message-ID: <03377896-6a6c-435f-8a42-6f617f1adf22@aklaver.com> Date: Sat, 11 Nov 2023 16:16:20 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Aren't regex_*() functions built-in? To: pf@pfortin.com, pgsql-general@lists.postgresql.org References: <20231111191214.60d182b2.pfortin@pfortin.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <20231111191214.60d182b2.pfortin@pfortin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/11/23 16:12, pf@pfortin.com wrote: > Hi, > > PostgreSQL 15.4 on x86_64-mageia-linux-gnu, compiled by gcc (Mageia > 12.3.0-3.mga9) 12.3.0, 64-bit > (the distro which can't figure out how to provide pgAdmin4) > > Aren't all the functions listed in > https://www.postgresql.org/docs/current/functions-string.html > assumed to be included in a base installation? > > I'm able to use replace(); but with regex_replace(), I get: > ERROR: function regex_replace(text, unknown, unknown, unknown) does not > exist Hint: No function matches the given name and argument types. You > might need to add explicit type casts. Probably because it is spelled regexp_replace (). > > ncsbe=# \df "replace" > List of functions > Schema | Name | Result data type | Argument data types | Type > ------------+---------+------------------+---------------------+------ > pg_catalog | replace | text | text, text, text | func > (1 row) > > ncsbe=# \df "regex" > List of functions > Schema | Name | Result data type | Argument data types | Type > --------+------+------------------+---------------------+------ > (0 rows) > > There are no regex* functions in /usr/share/postgresql/extension > > Thanks, > Pierre > > -- Adrian Klaver adrian.klaver@aklaver.com