pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Owen Jacobson <ojacobson@osl.com>
To: pgsql-sql@postgresql.org
Subject: Re: plpqsql and RETURN NEXT requires a LOOP?
Date: Tue, 21 Mar 2006 09:54:48 -0800
Message-ID: <144D12D7DD4EC04F99241498BB4EEDCC25E7EA@nelson.osl.com> (raw)

In general, to do anything useful with RETURN NEXT you need a loop.  However, it doesn't need to be a loop over another resultset: you can do a computation in a loop, returning values as you go.

Excuse the outlook-ism.

-Owen

-----Original Message-----
From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Davidson, Robert
Sent: Tuesday, March 21, 2006 9:51 AM
To: pgsql-sql@postgresql.org
Subject: [SQL] plpqsql and RETURN NEXT requires a LOOP?




view thread (2+ messages)

Message-ID: <144D12D7DD4EC04F99241498BB4EEDCC25E7EA@nelson.osl.com>
Permalink:  ../144D12D7DD4EC04F99241498BB4EEDCC25E7EA@nelson.osl.com/
Also on:    postgresql.org/message-id/144D12D7DD4EC04F99241498BB4EEDCC25E7EA@nelson.osl.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: ojacobson@osl.com
  Subject: Re: plpqsql and RETURN NEXT requires a LOOP?
  In-Reply-To: <144D12D7DD4EC04F99241498BB4EEDCC25E7EA@nelson.osl.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