Skip site navigation (1) Skip section navigation (2)

Seems a mistake in tutorial-7.2-A4.pdf file

From: "Cepera - n/a -" <cepera(at)hotmail(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: Seems a mistake in tutorial-7.2-A4.pdf file
Date: 2002-03-30 14:57:07
Message-ID: (view raw or whole thread)
Lists: pgsql-docs

I'm learning psql reading tutorial-7.2-A4.pdf file and doing
exercise from this document.
It seems there is a mistake in it.
On pages 14-15 of mentioned document it's written:

...<page 14>
The new declaration of the tables would look like this:

name varchar(80) primary key,
location point
...<page 15>
                                Chapter 3. Advanced Features

CREATE TABLE weather (
city varchar(80) references weather,
temp_lo int,
temp_hi int,
prcp real,
date date

Now try inserting an invalid record:

IMHO line `city varchar(80) references weather,'
must be   `city varchar(80) references cities,'.

Best regards,

Chat with friends online, try MSN Messenger:


pgsql-docs by date

Next:From: Richard A LoughDate: 2002-04-02 17:42:24
Subject: Estimating Database Disk Space
Previous:From: Peter EisentrautDate: 2002-03-28 01:16:29
Subject: Re: pagination in the PostgreSQL 7.2 Programmer's Guide

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group