pgsql: Add argument names to the regexp_XXX functions.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add argument names to the regexp_XXX functions.
Date: 2024-07-25 18:51:59
Message-ID: E1sX3ZH-001Bqa-FN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add argument names to the regexp_XXX functions.

This change allows these functions to be called using named-argument
notation, which can be helpful for readability, particularly for
the ones with many arguments.

There was considerable debate about exactly which names to use,
but in the end we settled on the names already shown in our
documentation table 9.10.

The citext extension provides citext-aware versions of some of
these functions, so add argument names to those too.

In passing, fix table 9.10's syntax synopses for regexp_match,
which were slightly wrong about which combinations of arguments
are allowed.

Jian He, reviewed by Dian Fay and others

Discussion: https://postgr.es/m/CACJufxG3NFKKsh6x4fRLv8h3V-HvN4W5dA=zNKMxsNcDwOKang@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/580f8727ca93b7b9a2ce49746b9cdbcb0a2b4a7e

Modified Files
--------------
contrib/citext/Makefile | 1 +
contrib/citext/citext--1.6--1.7.sql | 45 +++++++++++++++++++++++++
contrib/citext/citext.control | 2 +-
contrib/citext/meson.build | 1 +
doc/src/sgml/func.sgml | 26 ++++++++------
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 67 ++++++++++++++++++++++++++-----------
7 files changed, 112 insertions(+), 32 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2024-07-25 20:11:22 pgsql: Document restrictions regarding incremental backups and standbys
Previous Message Peter Eisentraut 2024-07-25 13:47:04 pgsql: pg_createsubscriber: Message improvements