From: Adrian Klaver <adrian.klaver@aklaver.com>
To: pf@pfortin.com
To: pgsql-general@lists.postgresql.org
Subject: Re: Aren't regex_*() functions built-in?
Date: Sat, 11 Nov 2023 16:16:20 -0800
Message-ID: <03377896-6a6c-435f-8a42-6f617f1adf22@aklaver.com> (raw)
In-Reply-To: <20231111191214.60d182b2.pfortin@pfortin.com>
References: <20231111191214.60d182b2.pfortin@pfortin.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, pf@pfortin.com
Subject: Re: Aren't regex_*() functions built-in?
In-Reply-To: <03377896-6a6c-435f-8a42-6f617f1adf22@aklaver.com>
References: <20231111191214.60d182b2.pfortin@pfortin.com> <03377896-6a6c-435f-8a42-6f617f1adf22@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox