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

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 (view raw, whole thread or download thread mbox)
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

pgsql-docs by date

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

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