Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1INj6E80039 for ; Mon, 18 Feb 2002 18:45:08 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g1INj2c17200; Mon, 18 Feb 2002 18:45:02 -0500 (EST) From: Bruce Momjian Message-Id: <200202182345.g1INj2c17200@candle.pha.pa.us> Subject: Re: tutorial-fk.patch In-Reply-To: <20020206172410.GA11043@phantom.monsterlabs.com> To: tfo@monsterlabs.com Date: Mon, 18 Feb 2002 18:45:02 -0500 (EST) CC: pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL96 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200202/23 X-Sequence-Number: 1252 Patch already submitted by someone else. Already fixed. Thanks. --------------------------------------------------------------------------- tfo@monsterlabs.com wrote: > the tutorial docs have a pretty egregious bug in introducing people to foreign keys, so i figured i'd go ahead and provide a quick patch. > > anyway, the offending URL is > > http://developer.postgresql.org/docs/postgres/tutorial-fk.html > > an example patch is > > --- old/tutorial-fk.html Wed Feb 6 10:58:36 2002 > +++ new/tutorial-fk.html Wed Feb 6 11:08:40 2002 > @@ -141,7 +141,7 @@ > ); > > CREATE TABLE weather ( > - city varchar(80) references weather, > + city varchar(80) references cities(name), > temp_lo int, > temp_hi int, > prcp real, > @@ -238,4 +238,4 @@ > > > > -> > \ No newline at end of file > +> > > enjoy! > > -tfo > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026