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 1vIIlh-002xQx-Fq for pgsql-docs@arkaria.postgresql.org; Mon, 10 Nov 2025 03:40:37 +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 1vIIlg-00Digm-2J for pgsql-docs@arkaria.postgresql.org; Mon, 10 Nov 2025 03:40:36 +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 1vIIlf-00Digc-Mw for pgsql-docs@lists.postgresql.org; Mon, 10 Nov 2025 03:40:35 +0000 Received: from mout-u-204.mailbox.org ([2001:67c:2050:101:465::204]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vIIld-006uXH-26 for pgsql-docs@lists.postgresql.org; Mon, 10 Nov 2025 03:40:35 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4d4b650Crgz9t0C; Mon, 10 Nov 2025 04:40:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ewie.name; s=MBO0001; t=1762746029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mJBabA7RFetc7fmJe7LFjzhamduBFQAnOhE1j6ENKhc=; b=CzFLG3Ms3sOQrphbVCToPywNEbPmZ8C+voVHDiyZv+Z9ic4Y1b34opymR9PGbIO56gdy6H FhzOIEj5p3nLZV/RTBGr6zKbP3ta+8vdk1d/TgD+8T6Lnan5WAOsAXKXgoQV8i9YXPjnHa /IAHps/HZQiAB3Ccqu+Xf5fA/Fx92R+X1GwM/kJrzFbf4lEuYm/fuDsMCxrIjC5MKclyG4 Yu2vjTR6ZGgv6Qbqo+eGlbSgeIStm+EWSOOqACepLAsGOzV38OPJfP5LLjkDvuCGgxBJTy P0SchFFG5rqojBxD9DZ5x76BsvexvlkTt7fEQHhxUHDYuWiWNlsl5/7gRZ487w== Date: Mon, 10 Nov 2025 04:40:25 +0100 From: Erik Wienhold To: jian he Cc: David Rowley , Tom Lane , Bruce Momjian , Nathan Bossart , Euler Taveira , pgsql-docs@lists.postgresql.org Subject: Re: Use uppercase keywords in foreign key tutorial Message-ID: <5b870856-1ff9-4776-97ba-f568eb5cbd2f@ewie.name> References: <0a68a965-4599-4af1-a1eb-bd8e1be75788@ewie.name> <32882add-b671-42db-a041-e2c2c5b7c315@ewie.name> <4487a138-c4d2-4b06-80b3-5afe7f8e5d82@ewie.name> <971a5a3d-c200-4700-824b-f71a6e831994@ewie.name> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="qpmbew54ltvavodr" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --qpmbew54ltvavodr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2025-11-10 04:15 +0100, jian he wrote: > On Thu, Nov 6, 2025 at 11:06 AM David Rowley wrote: > > > > I reviewed this and double checked you left "uPDaTE" in [1]. Found no > > issues, so pushed. > > > > in doc/src/sgml/func/func-matching.sgml > > > substring(string similar > pattern escape > escape-character) > > or using the now obsolete SQL:1999 syntax: > > substring(string from > pattern for > escape-character) > > or as a plain three-argument function: > > substring(string, > pattern, > escape-character) > > > key word: "similar", "escape", "from", "for" within the above synopsis > section need uppercase too? Thanks, good catch. Not surprised that I've missed those because it already took me a couple of rounds to find everything that's in the previous patch. Here's another patch. -- Erik Wienhold --qpmbew54ltvavodr Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="upcase-keywords-in-func-matching.patch" diff --git a/doc/src/sgml/func/func-matching.sgml b/doc/src/sgml/func/func-matching.sgml index 91a0b7ca0de..f466860ddb0 100644 --- a/doc/src/sgml/func/func-matching.sgml +++ b/doc/src/sgml/func/func-matching.sgml @@ -369,11 +369,11 @@ regular expression pattern. The function can be written according to standard SQL syntax: -substring(string similar pattern escape escape-character) +substring(string SIMILAR pattern ESCAPE escape-character) or using the now obsolete SQL:1999 syntax: -substring(string from pattern for escape-character) +substring(string FROM pattern FOR escape-character) or as a plain three-argument function: --qpmbew54ltvavodr--