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
Message-ID: 200102202229.f1KMTH126085@vulpine.ao.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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 $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

Responses

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