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 1vB1Js-009C5Z-VN for pgsql-docs@arkaria.postgresql.org; Tue, 21 Oct 2025 01:37:48 +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 1vB1Jr-005ijg-Sa for pgsql-docs@arkaria.postgresql.org; Tue, 21 Oct 2025 01:37:46 +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 1vB1Jr-005ijJ-1y for pgsql-docs@lists.postgresql.org; Tue, 21 Oct 2025 01:37:46 +0000 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vB1Jm-003KuQ-2U for pgsql-docs@lists.postgresql.org; Tue, 21 Oct 2025 01:37:45 +0000 Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfhigh.phl.internal (Postfix) with ESMTP id 352C01400124; Mon, 20 Oct 2025 21:37:41 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-07.internal (MEProxy); Mon, 20 Oct 2025 21:37:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1761010661; x=1761097061; bh=qgCHNLsnjR9GmG9PSDYwi9ZjOvPMDh/ZfFb53OAF3tE=; b= XESku4iINjnusDEG233Ke20cZb+vGmXE2FkjSG+afZiCXVMj08aBxwVYL+MxBaIJ w8YKrCFh00blIMCN18KvItLC53u2ZYP6pPTMTe6ZsjrMxuT0UtdBSo7t2Orv3SNf JgBYWu5ZO2zN4eKbvdf0Bs03Gj62KtRXisiBysc8bF3vU9Xvhan+65TA/ufpjZ4w Hg2z94DPRP9k2Ma1Fmp7lt1U2G23O71SOq/FNxt8uDckg9QvVgmaHSLs9+5kOay8 v7Ik7l+8sN/hHAAi3hwixiXDs2xreul0M/E3TnS+9uR6LRMTuqID6qiwEIfjgI6D VX+aNKp4t+aOGqRA6+Se+g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1761010661; x=1761097061; bh=q gCHNLsnjR9GmG9PSDYwi9ZjOvPMDh/ZfFb53OAF3tE=; b=dEz8SKoYUllCTughI ax3NAPIiGnY0iWhyAYFOWj41heFoh37/uyRtPS7WacGF0H3USn4C5vRKC9eU+WFb yt7gZAyxpSZJAi4eEXylZXZf9Qd3cjgONHKeaspB72sLdw/iB6Y6XU6Ug7VroOru q9IoI7TjWcokQS/roNGTvbZ3uw8yXhUyIRMD5YIKOOmWN5xBLJnC2oKOzKKQHU4b SCmFGK8BS20p+DL/bLWpUf/vljjbmGIPbNT4uPKZNs36KY+ANiPT0SYLHrPFaIYe KDBeDxEXcCGnyy+ka7TRg+m+aMYDMUcuABGUQ20JA+RnUrHWKxOeVcduY71UHlBo jfk1A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddufeelgedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvffkjghfufgtgfesthejredtredttdenucfhrhhomhepfdfguhhlvghr ucfvrghvvghirhgrfdcuoegvuhhlvghrsegvuhhlvghrthhordgtohhmqeenucggtffrrg htthgvrhhnpeetudfhteeuueegudeilefgfffgtddvjeeufedvfefffeefgefgudejueel veekveenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpdgvnhhtvghrphhrih hsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegvuhhlvghrsegvuhhlvghrthhordgtohhmpdhnsggprhgtphhtthhopedvpd hmohguvgepshhmthhpohhuthdprhgtphhtthhopegvfihivgesvgifihgvrdhnrghmvgdp rhgtphhtthhopehpghhsqhhlqdguohgtsheslhhishhtshdrphhoshhtghhrvghsqhhlrd horhhg X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id C465B1820054; Mon, 20 Oct 2025 21:37:40 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: Awpe1DJbAfsV Date: Mon, 20 Oct 2025 22:37:20 -0300 From: "Euler Taveira" To: "Erik Wienhold" , pgsql-docs@lists.postgresql.org Message-Id: In-Reply-To: <82eb512b-8ed2-46be-b311-54ffd26978c4@ewie.name> References: <82eb512b-8ed2-46be-b311-54ffd26978c4@ewie.name> Subject: Re: Use uppercase keywords in foreign key tutorial Content-Type: text/plain Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Oct 16, 2025, at 5:37 AM, Erik Wienhold wrote: > While browsing the docs I saw that the foreign key tutorial [1] uses > some lowercase keywords which are inconsistent with the rest of the > docs. The attached patch fixes that. Should be pushed to all stable > branches. > Register your patch in the next CF [1] so it won't be forgotten. These are not the only places that SQL keywords use lowercase. There are various cases (I searched for 'primary key') in dml.sgml, logicaldecoding.sgml, plpgsql.sgml, sepgsql.sgml, and textsearch.sgml that you should address as part of your proposal. I don't think there is an easy way to collect all cases. I also checked the most common keywords and I found a few lowercase cases. The SQL commands are usually inside programlisting tag so I tried the following command (to find the occurrence in the first line): cd doc/srg/sgml grep -r -A 1 ' CREATE TABLE parent(key integer, ...); CREATE TABLE child1000(check (key between 1000 and 1999)) INHERITS(parent); CREATE TABLE child2000(check (key between 2000 and 2999)) INHERITS(parent); ... SELECT * FROM parent WHERE key = 2400; [1] https://commitfest.postgresql.org/56/ -- Euler Taveira EDB https://www.enterprisedb.com/