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: (view raw, whole thread or download thread 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".




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