Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 848D2475FF3 for ; Mon, 24 Jun 2002 08:29:18 -0400 (EDT) Mailbox-Line: From kbrannen@gte.net Mon Jun 24 08:29:18 2002 Received: from out008.verizon.net (out008pub.verizon.net [206.46.170.108]) by postgresql.org (Postfix) with ESMTP id 7292E476255 for ; Sun, 23 Jun 2002 16:29:47 -0400 (EDT) Received: from gte.net ([67.202.101.179]) by out008.verizon.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20020623202947.VQLT16548.out008.verizon.net@gte.net>; Sun, 23 Jun 2002 15:29:47 -0500 Message-ID: <3D162FDE.6030002@gte.net> Date: Sun, 23 Jun 2002 15:30:22 -0500 From: kbrannen@gte.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020310 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-docs@postgresql.org Subject: bug in tutorial docs Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-1.1 required=5.0 tests=NO_REAL_NAME version=2.30 X-Spam-Level: X-Archive-Number: 200206/30 X-Sequence-Number: 1405 Just in case no one else has found it, in the tutorial docs on page file:/usr/share/doc/packages/postgresql/html/tutorial-fk.html says: >>> CREATE TABLE weather ( city varchar(80) references weather, temp_lo int, temp_hi int, prcp real, date date ); <<< and talks about the foreign key insert error. But that did not work when I tried it. I believe the doc should say: >>> CREATE TABLE weather ( city varchar(80) references cities, temp_lo int, temp_hi int, prcp real, date date ); <<< The difference is the table referenced, cities not weather. That does allow the example to work. HTH, Kevin Brannen