pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Fritz Lehmann-Grube <lehmannf@math.TU-Berlin.DE>
To: pgsql-sql@postgresql.org
Subject: Re: recursive function returning "setof"
Date: Mon, 19 Aug 2002 22:52:22 +0800
Message-ID: <006b01c24790$072149c0$0200a8c0@SOL> (raw)
References: <3D60F041.10003@math.tu-berlin.de>

> The problem is:
> A SQL-Function cannot be recursive because it cannot call itself, and it
can
> perform no loops.
> A PLPGSQL-Function cannot return sets.

It can perform loops.  Check the manual- you can do FOR and WHILE loops.
7.3 will be able to return sets from PLPGSQL funcs it seems.

Chris





view thread (4+ messages)  latest in thread

Message-ID: <006b01c24790$072149c0$0200a8c0@SOL>
Permalink:  ../006b01c24790$072149c0$0200a8c0@SOL/
Also on:    postgresql.org/message-id/006b01c24790$072149c0$0200a8c0@SOL

 · 

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: chriskl@familyhealth.com.au, lehmannf@math.TU-Berlin.DE
  Subject: Re: recursive function returning "setof"
  In-Reply-To: <006b01c24790$072149c0$0200a8c0@SOL>

* 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