Lists: | Postg윈 토토SQL : Postg윈 토토SQL 메일 링리스트 : 2002-05-26 이후 PGSQL-BUGS. |
---|
From: | Caspar Bothmer <caspar(at)cbothmer(dot)org> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | bug in documentation |
Date: | 2002-05-26 09:37:33 |
Message-ID: | 3CF0ACDD.1CDBF3EA@cbothmer.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg윈 토토SQL : Postg윈 토토SQL 메일 링리스트 : 2002-05-26 이후 PGSQL-BUGS. |
My name: Caspar
Email: caspar(at)cbothmer(dot)org
Description in Documentation:
the 7.2-tutorials available online, both formats (US and A4) at
http://www.de.postgresql.org/users-lounge/docs/7.2/tutorial-7.2-A4.pdf
respectively
http://www.de.postgresql.org/users-lounge/docs/7.2/tutorial-7.2-US.pdf
have this error at chapter 3.3 (foreign keys):
in
CREATE TABLE weather (
it reads
city varchar(80) references weather,
but it should be
city varchar(80) references cities,
Postgresql creates an
ERROR: PRIMARY KEY for referenced table "weather" not found
so the only affect will be that someone trying it out would have to
think about this problem. The error is an obvious one, I read through
the docs and was sure that this wouldn't be ok and just tried it out
myself to verify my first impression.
There is an error message given with the INSERT example right there but
it is trunkated ("not foun") so one can't see whether is reads "not
found in weather" or "not found in cities". If your source says weather
I would recommend changing it there as well.
bye
caspar
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Caspar Bothmer <caspar(at)cbothmer(dot)org> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: bug in documentation |
Date: | 2002-05-26 16:20:24 |
Message-ID: | 5722.1022430024@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Caspar Bothmer <caspar(at)cbothmer(dot)org> writes:
> it reads
> city varchar(80) references weather,
> but it should be
> city varchar(80) references cities,
This is already fixed in development sources --- see
http://developer.postgresql.org/docs/postgres/tutorial-fk.html
But thanks for the report.
regards, tom lane