Re: How to return more than one variable from PgPlSQL procedure?

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Ivan Babikov" <iab(at)qms(dot)e-burg(dot)ru>, pgsql-sql(at)postgresql(dot)org
Subject: Re: How to return more than one variable from PgPlSQL procedure?
Date: 2002-03-22 16:15:06
Message-ID: 20020322161520.2A95113E6F@mainbox.archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Friday 22 Mar 2002 12:34, Ivan Babikov wrote:
> Hello all,
>
> I've noticed that postgres functions can return SETOF but it seems that
> SETOF works only for sql-language functions. At least the code below is
> compilable but causes freezing of pgAdmin during the execution. This
> function was converted to PgPlSql from Interbase:

Your assessment is correct, plpgsql cannot cope with SETOF at the moment.
Version 7.2 allows you to return a cursor though (see the docs).

- Richard Huxton

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Dmitry Tkach 2002-03-22 17:07:54 Re: A general database question!
Previous Message Pirtea Calin 2002-03-22 14:37:31 Re: Yet another indexing issue.