Re: result sets from functions...

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: "Robert J(dot) Sanford, Jr(dot)" <rsanford(at)nolimitsystems(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: result sets from functions...
Date: 2001-08-15 02:54:56
Message-ID: web-102420@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Robert,

> i'm reading the postgres documentation and i'm specifically
> interested in creating stored procedures so that i can keep
> as much of the business logic in the database as possible.
> while reading 13.1.3 (SQL Functions on Composite Types) in
> the Programmer's Guide i come across the phrase...
> "When calling a function that returns a row, we cannot
> retrieve the entire row. We must either project an
> attribute out of the row or pass the entire row into
> another function.
> SELECT name(new_emp()) AS nobody;"

Unfortunately, PostgreSQL functions do not yet return result sets. This
is on the "todo" list but unfortunately requires an overhaul of how
postgresql functions work.

-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Joseph Syjuco 2001-08-15 03:34:12 user defined function question
Previous Message Robert J. Sanford, Jr. 2001-08-15 02:35:56 result sets from functions...