pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <JanWieck@Yahoo.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: Robert J. Sanford, Jr. <rsanford@nolimitsystems.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: result sets from functions...
Date: Wed, 15 Aug 2001 01:49:03 -0400 (EDT)
Message-ID: <200108150549.f7F5n3H02394@jupiter.us.greatbridge.com> (raw)
In-Reply-To: <web-102420@davinci.ethosmedia.com>

Josh Berkus wrote:
> 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.

    As  said,  in  v7.2  we'll have the ability to return cursors
    from functions (and I'm looking actually into the ability  of
    doing  RETURN AND RESUME).  So there is at least some sort of
    workaround on the horizon.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




view thread (6+ messages)  latest in thread

Message-ID: <200108150549.f7F5n3H02394@jupiter.us.greatbridge.com>
Permalink:  ../200108150549.f7F5n3H02394@jupiter.us.greatbridge.com/
Also on:    postgresql.org/message-id/200108150549.f7F5n3H02394@jupiter.us.greatbridge.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: JanWieck@Yahoo.com, josh@agliodbs.com, rsanford@nolimitsystems.com
  Subject: Re: result sets from functions...
  In-Reply-To: <200108150549.f7F5n3H02394@jupiter.us.greatbridge.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