Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46] (may be forged)) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1NKIxx96514 for ; Fri, 23 Feb 2001 15:18:59 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id PAA23979; Fri, 23 Feb 2001 15:17:30 -0500 (EST) From: Bruce Momjian Message-Id: <200102232017.PAA23979@candle.pha.pa.us> Subject: Re: Documentation errors in Programmers guide, chapter 4. In-Reply-To: <200102202229.f1KMTH126085@vulpine.ao.net> "from Dan Merillat at Feb 20, 2001 05:29:17 pm" To: Dan Merillat Date: Fri, 23 Feb 2001 15:17:30 -0500 (EST) CC: pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200102/136 X-Sequence-Number: 396 Looks like this has been fixed. Can you check the development documentation on the web site. > > The following more interesting example takes a single argument of type EMP, and retrieves multiple results: > > select function hobbies (EMP) returns set of HOBBIES > as 'select (HOBBIES.all) from HOBBIES > where $1.name = HOBBIES.person' > language 'sql'; > > Should be: > > create function hobbies (EMP) returns setof HOBBIES ... > > It took me quite a while to figure out the second error, since "set of" > seemed perfectly natural there, when in fact it is "setof". > > Thanks, > > --Dan > > -- 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