Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwNSr-0006vh-Qn for pgsql-docs@arkaria.postgresql.org; Thu, 24 Jun 2021 11:24:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lwNSq-0006Lw-QV for pgsql-docs@arkaria.postgresql.org; Thu, 24 Jun 2021 11:24:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwNSq-0006Lo-Jt for pgsql-docs@lists.postgresql.org; Thu, 24 Jun 2021 11:24:08 +0000 Received: from forward1-smtp.messagingengine.com ([66.111.4.223]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwNSn-0000V3-AQ for pgsql-docs@lists.postgresql.org; Thu, 24 Jun 2021 11:24:07 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailforward.nyi.internal (Postfix) with ESMTP id F17771940503; Thu, 24 Jun 2021 07:24:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 24 Jun 2021 07:24:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=fjsaq9rhpI7HFg3bKx4m1t8nQwOoovoHVWe3ZhOUm g4=; b=OSHRPymDLqWHFeu++FTak4R8nF8xlVXnjE/eLyItfkgcf3AYpdgE4I2bL O8JQkGFcE/Cn0/EeHy2tO8hso1qdTlzKmq3X8SkR9rtSYg43EAU1McZ9v0jZAdL6 /LVYCDRJZPfna8AwxsG5uoUj9q8aEIcL/VpmTCkzA3tBEypsr0ZerGKW3wkKOSdu AXUmJg1zmGO4M4XzRDM8t+qFZUzkbmrdkkzZHt06XxO9fm2TnIjexwnqtGpRG6Qo z5NIEY3FntIbWVIX5Wsmt6xae4HiulUZFq0aG31cROWQ5TsNTdNRfK49gDMGiT2K GKLvvXZfqnm3XLSFICojp9tmISt9A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeghedggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefheenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhephfffteeljeetudfffeev hfevjedugeefveeuheeigedtueffudejteektddvjeefnecuffhomhgrihhnpehpohhsth hgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvug gsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 24 Jun 2021 07:24:02 -0400 (EDT) Subject: Re: Cities name column name inconsistent To: Bruce Momjian , "David G. Johnston" Cc: Tom Jakubowski , Pg Docs References: <162345756191.14472.9754568432103008703@wrigleys.postgresql.org> <20210614162909.GA18585@momjian.us> From: Peter Eisentraut Message-ID: <30cc267d-8799-1ea7-a628-7e4fa6967f26@enterprisedb.com> Date: Thu, 24 Jun 2021 13:24:01 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <20210614162909.GA18585@momjian.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 14.06.21 18:29, Bruce Momjian wrote: > On Sat, Jun 12, 2021 at 12:48:25PM -0700, David G. Johnston wrote: >> >> On Sat, Jun 12, 2021, 12:28 PG Doc comments form >> wrote: >> >> The following documentation comment has been logged on the website: >> >> Page: https://www.postgresql.org/docs/13/tutorial-fk.html >> Description: >> >> In earlier sections of the tutorial, the cities table had a column called >> 'name'. In this chapter, when creating the revised schema with foreign >> keys, >> the same column in the cities is now called 'city'. >> >> >> You are correct.  I don't see an urgent need to spend time figuring out >> something different. > > I wrote the attached patch to improve this case. The tutorial documentation is meant to be consistent with src/tutorial/, which uses cities.name, so calling the column "city" was just plain wrong in that respect.