bug in tutorial docs

Поиск
Список
Период
Сортировка
Искать
От
kbrannen@gte.net
Тема
bug in tutorial docs
Дата
Msg-id
3D162FDE.6030002@gte.net
Список
Дерево обсуждения
bug in tutorial docs kbrannen@gte.net
Re: bug in tutorial docs Bruce Momjian <pgman@candle.pha.pa.us>
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 по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: crash problem
От: Bruce Momjian
Дата:
Сообщение: Re: bug in tutorial docs
FAQ