From: Bruce Momjian Date: Sat, 3 Jul 2021 00:42:45 +0000 (-0400) Subject: doc: adjust "cities" example to be consistent with other SQL X-Git-Tag: REL9_6_23~45 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=58f759fd030a2c2b067107140474eaf59c8f168a;p=postgresql.git doc: adjust "cities" example to be consistent with other SQL Reported-by: tom@crystae.net Discussion: https://postgr.es/m/162345756191.14472.9754568432103008703@wrigleys.postgresql.org Backpatch-through: 9.6 --- diff --git a/doc/src/sgml/advanced.sgml b/doc/src/sgml/advanced.sgml index 7bead13c997..600e4260950 100644 --- a/doc/src/sgml/advanced.sgml +++ b/doc/src/sgml/advanced.sgml @@ -46,7 +46,7 @@ CREATE VIEW myview AS - SELECT city, temp_lo, temp_hi, prcp, date, location + SELECT name, temp_lo, temp_hi, prcp, date, location FROM weather, cities WHERE city = name; @@ -101,12 +101,12 @@ SELECT * FROM myview; CREATE TABLE cities ( - city varchar(80) primary key, + name varchar(80) primary key, location point ); CREATE TABLE weather ( - city varchar(80) references cities(city), + city varchar(80) references cities(name), temp_lo int, temp_hi int, prcp real,