From: Josh Berkus <josh@agliodbs.com>
To: sqllist <pgsql-sql@postgresql.org>
To: Jeff MacDonald <jeff@pgsql.com>
Subject: Re: Function that returns a tuple.
Date: Wed, 18 Oct 2000 08:36:21 -0700
Message-ID: <39EDC375.6CA2D342@agliodbs.com> (raw)
References: <39EDA670.412D7DFD@certi.ufsc.br>
Claudio,
> How can I write a function in sql or pl- pgsql that returns a set of
> tuples ?
I've had the same question myself for the past month, which has gone
unanswered (hint, hint, Jeff!). Currently I'm using custom functions to
build views and then referenceing the views:
CREATE FUNCTION fun_generate_statistics (
do a bunch of stuff, ending with:
CREATE VIEW vw_generate_statistics (
bunch of stuff);
);
Then the front-end code references vw_generate_statistics.
Not elegant, but sufficient until I hear from Jeff or Jan Wieck.
-Josh Berkus
--
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 436-9166
for law firms, small businesses fax 436-0137
and non-profit organizations. pager 338-4078
San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, jeff@pgsql.com
Subject: Re: Function that returns a tuple.
In-Reply-To: <39EDC375.6CA2D342@agliodbs.com>
References: <39EDA670.412D7DFD@certi.ufsc.br> <39EDC375.6CA2D342@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox