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.

[1] https://www.postgresql.org/docs/current/tutorial-fk.html

-- 
Erik Wienhold
>From c4fe1831fedc07ebb123c6cdc79eb97b32a1847c Mon Sep 17 00:00:00 2001
From: Erik Wienhold <[email protected]>
Date: Thu, 16 Oct 2025 10:30:21 +0200
Subject: [PATCH] doc: Use uppercase keywords in foreign key tutorial

Make it consistent with the rest of the docs.
---
 doc/src/sgml/advanced.sgml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/src/sgml/advanced.sgml b/doc/src/sgml/advanced.sgml
index e15a3323dfb..1f37dc73be8 100644
--- a/doc/src/sgml/advanced.sgml
+++ b/doc/src/sgml/advanced.sgml
@@ -101,12 +101,12 @@ SELECT * FROM myview;
 
 <programlisting>
 CREATE TABLE cities (
-        name     varchar(80) primary key,
+        name     varchar(80) PRIMARY KEY,
         location point
 );
 
 CREATE TABLE weather (
-        city      varchar(80) references cities(name),
+        city      varchar(80) REFERENCES cities(name),
         temp_lo   int,
         temp_hi   int,
         prcp      real,
-- 
2.51.0

Reply via email to