Documentation errors in Programmers guide, chapter 4.

From: Dan Merillat <harik(at)chaos(dot)ao(dot)net>
To: pgsql-docs(at)postgresql(dot)org
Subject: Documentation errors in Programmers guide, chapter 4.
Date: 2001-02-20 22:29:17
Views: Raw Message | Whole Thread | Download mbox
Lists: pgsql-docs

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 $ = 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".




Browse pgsql-docs by date

  From Date Subject
Next Message Laurie Nason 2001-02-20 22:35:30 missing page
Previous Message Peter Eisentraut - PostgreSQL 2001-02-20 22:27:56 pgsql/doc/src/sgml indices.sgml