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 1tzbXb-0049Wv-JN for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Apr 2025 13:20:31 +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 1tzbXa-002DAM-Ad for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Apr 2025 13:20:30 +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 1tzbXZ-002DAE-Tc for pgsql-hackers@lists.postgresql.org; Tue, 01 Apr 2025 13:20:30 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tzbXX-002LXT-1U for pgsql-hackers@postgresql.org; Tue, 01 Apr 2025 13:20:28 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 567DD344983 for ; Tue, 01 Apr 2025 15:20:24 +0200 (CEST) Received: from s981.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 4709B342E74; Tue, 01 Apr 2025 15:20:24 +0200 (CEST) Received: from s474.loopia.se (unknown [172.22.191.5]) by s981.loopia.se (Postfix) with ESMTP id 4281222B16C2; Tue, 01 Apr 2025 15:20:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -0.2 X-Spam-Level: X-Spam-Status: No, score=-0.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SH_HBL_EMAILS_GMAIL=1] autolearn=disabled Authentication-Results: s474.loopia.se (amavisd-new); dkim=pass (2048-bit key) header.d=yesql.se Received: from s979.loopia.se ([172.22.191.6]) by s474.loopia.se (s474.loopia.se [172.22.190.14]) (amavisd-new, port 10024) with LMTP id vrW-FnteF1WY; Tue, 1 Apr 2025 15:20:23 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s979.loopia.se (Postfix) with ESMTPSA id BED4C10BC475; Tue, 01 Apr 2025 15:20:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1743513623; bh=xzTo6ht4KcLUY3pFxzmySCdpj22gkRC6DHSCaxzvEZE=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=eAiW+NT6wSTK2ttRumha78wI7GBOqt9DsMRseF8XFhU7z52uRNxd+eG9rYVNzzwqq VUZioaY8gBpek6u/sFNvAk0o0VVb3sg6/7SvAIGI6hYAR4kpSpdzUapqENjfhSCuqW bVTNl5a+GAT5VS0ysLzWxhzOq/ImtT+e8cc/OAiAajmgDtx88J3FsyuImvRQcvxl3O USfOREaYvI6nDz5ad1xE4fhKwg+7Zzi0PbXnllhxkIWbWppztZBVgbCSWgiJXE2fYU 3X59JOtw1VOS1ZlXzTtyNFEviiSI9nMHu0hJIiFYloQdow33oYBaDv+Lz4ww3v+vzC zcwHCGPa964qA== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.1\)) Subject: Re: add function argument name to substring and substr From: Daniel Gustafsson In-Reply-To: Date: Tue, 1 Apr 2025 15:20:13 +0200 Cc: "David G. Johnston" , jian he , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Marcos Pegoraro X-Mailer: Apple Mail (2.3776.700.51.11.1) X-Spam: Yes List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 1 Apr 2025, at 15:14, Marcos Pegoraro wrote: >=20 > Em ter., 1 de abr. de 2025 =C3=A0s 02:00, David G. Johnston = escreveu: >=20 > 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') While not commenting on the usefulness of the suggestion; any usage of = email addresses in the documentation should use @example.{com|org}. -- Daniel Gustafsson