bug in tutorial docs - Mailing list pgsql-docs

From kbrannen@gte.net
Subject bug in tutorial docs
Date
Msg-id 3D162FDE.6030002@gte.net
Whole thread Raw
Responses Re: bug in tutorial docs  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-docs
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




pgsql-docs by date:

Previous
From: Tom Lane
Date:
Subject: Re: crash problem
Next
From: Bruce Momjian
Date:
Subject: Re: bug in tutorial docs