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 1tzbSz-0048a4-Pb for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Apr 2025 13:15:46 +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 1tzbSy-002AAZ-BZ for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Apr 2025 13:15:44 +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 1tzbSx-002AAR-Sb for pgsql-hackers@lists.postgresql.org; Tue, 01 Apr 2025 13:15:44 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tzbSr-002kvX-2w for pgsql-hackers@postgresql.org; Tue, 01 Apr 2025 13:15:43 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-ac73723b2d5so616249266b.3 for ; Tue, 01 Apr 2025 06:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f10-com-br.20230601.gappssmtp.com; s=20230601; t=1743513337; x=1744118137; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jnpDWDBZ+tm/4wtu1jBTIn80rz89uFmqBlWT/WMFd0M=; b=dw+Ou2/b2hfCSp3svbQQu71SGgq2TCUezRWYx82dAsYHPv6ugGrVPN8+kkbvB60U5l C0+7ynN0CIwWsDa384iw0+rXS+0oGFbq7XSdJ8+jNaGvbIMtZ91FkyyB6G0EzSyNAPiO 7XmQ8+N8SG/0prgeFQWD0IGHoctrGP+kh6pHU7GIqBSJ9hSZ8oUSQ9hMAK74OPwucBBK Dcid61/yKoXigszyilyypYQ98erM1+UfzML7jNOVFqhJWu0sQ155EUGjBj4ToC8dFVcH sMgrLDFxPXs0OpPytgS+achwI9EciQRPlxxbrxmHXLfTeJZr35Cm/o2h83Mbl3DJYLQF tj/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743513337; x=1744118137; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jnpDWDBZ+tm/4wtu1jBTIn80rz89uFmqBlWT/WMFd0M=; b=rIpHdnjkaJLzwFNU1XGFDnFDADFlfIB/FCCR0bzCowq1Kh58VUXtShnc/IvBYybhH5 dooGQbU2Gmnh0wwodvHTVFENre9sUAr04Uf4u4kWfCVbJ+PmjwWrTcqepj2m4VZWZyBG Yf69tzdF32gKrrca0yIxCB1mw4Wp0gowLpUZVa5h042W9sI63jN9T8Iu0N9M7M27hRrd XrELk4kZs/HqSHN5RuIHzH4WEMnag5pdineVmX/9CbtuBr++b8ZTLOWrVg5lLvgsJa5z 05vhVPhBbsEAYtdO6vAnB39956BdNZoTZMNIXp4pTsKI2Y/WPZtYUfF9M+E+YbhhW/Pl daoA== X-Forwarded-Encrypted: i=1; AJvYcCU0ruHVm5sImYLrCBHs4fwcKNEjjgA4uCNVZt3G22KB2CwuB6i19k2Wvie8IqsojTgPT+UTgl+7FLoXGRTf@postgresql.org X-Gm-Message-State: AOJu0YwVzF18m83doWBU3pcl38unq1OZqtkQTWNYlv9DzTpRAKgm9ir7 RlEdrLLBkiCrs0HQVDCpRn2JUE6AHrzbE2ZWO2Fm2ps5wTUHXIdCznzg8kv2UHkskWPzwHPYO5N rVvan7g9ICWHbFMhZS6IUDclqCGWkPw5EP9Ri X-Gm-Gg: ASbGnctuVxA2My/jl2hAdFpy0PnI/oKJ8sXBsz0N7zbL09nT2mYenP9UKVsJ+7uNyk/ 8wEo9HgNwdyW+ki0X/VUWV3eCjEi+kqrAjISX/GHyTZpjF7X6lc191wUT+aky5yApDenbae9EZR SQ2gG6FaPTHXLTWpEPEtHEjoIxdg== X-Google-Smtp-Source: AGHT+IEOulHAKngm3kFc4PHbZr1IzZTv4mY/I/nTzx8MSRuCJI0t2BNmLvx0Xdp8oRW2IFFRoRdu0yXMhPBUP3qVm0M= X-Received: by 2002:a17:907:9487:b0:ac3:c05d:3083 with SMTP id a640c23a62f3a-ac738be3ee8mr1002248866b.35.1743513336705; Tue, 01 Apr 2025 06:15:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marcos Pegoraro Date: Tue, 1 Apr 2025 10:14:58 -0300 X-Gm-Features: AQ5f1JqSFCbAZQYJZLMvwniEz_pDTfa-6eUyy-_sKrjMp1k1VBSdWve0EQsHcbY Message-ID: Subject: Re: add function argument name to substring and substr To: "David G. Johnston" Cc: jian he , PostgreSQL-development Content-Type: multipart/alternative; boundary="00000000000018961f0631b75561" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000018961f0631b75561 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Em ter., 1 de abr. de 2025 =C3=A0s 02:00, David G. Johnston < david.g.johnston@gmail.com> escreveu: Wouldn't it be good to add the use of parentheses using posix ? It's useful and rarely documented substring('Thomas', '...$') + substring('Email: johnjohn@mymail.com, Name: John' from '@(.*), Name') regards Marcos --00000000000018961f0631b75561 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Em ter., 1 de abr. de 2025 =C3=A0s 02:00,= David G. Johnston <david.= g.johnston@gmail.com> escreveu:

Wouldn't it be good = to add the use of parentheses using posix ? It's useful and rarely docu= mented
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <literal>su= bstring('Thomas', '...$')</literal>
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0<literal>substring('Email: <= a href=3D"mailto:johnjohn@mymail.com">johnjohn@mymail.com, Name: John&#= 39; from '@(.*), Name')</literal>

regards
Marcos
--00000000000018961f0631b75561--