pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: kbrannen@gte.net
To: pgsql-docs@postgresql.org
Subject: bug in tutorial docs
Date: Sun, 23 Jun 2002 15:30:22 -0500
Message-ID: <3D162FDE.6030002@gte.net> (raw)

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






view thread (2+ messages)  latest in thread

Message-ID: <3D162FDE.6030002@gte.net>
Permalink:  ../3D162FDE.6030002@gte.net/
Also on:    postgresql.org/message-id/3D162FDE.6030002@gte.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: kbrannen@gte.net
  Subject: Re: bug in tutorial docs
  In-Reply-To: <3D162FDE.6030002@gte.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox