From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | sqllist <pgsql-sql(at)postgresql(dot)org>, Jeff MacDonald <jeff(at)pgsql(dot)com> |
Subject: | Re: Function that returns a tuple. |
Date: | 2000-10-18 15:36:21 |
Message-ID: | 39EDC375.6CA2D342@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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(at)agliodbs(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-10-18 16:32:43 | Re: Function that returns a tuple. |
Previous Message | Peter Eisentraut | 2000-10-18 15:24:25 | Re: problem with select where like ']' |