Re: Having a plpgsql function return multiple rows that indicate its progress in a cursor like fashion

From: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl>, PGSQL Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Having a plpgsql function return multiple rows that indicate its progress in a cursor like fashion
Date: 2010-02-16 16:32:45
Message-ID: db471ace1002160832x7cb2b790y64e7ee71f509d400@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> It is possible to code set-returning functions in a suspend-and-resume
> style, but none of the available PLs do that; you have to get down to
> the C level.

Aren't my requirements sufficiently common to justify developing a
mechanism to report progress back to client applications during batch
operations and the like? This seems like a nice thing to have, that
would be broadly useful, perhaps as a contrib module. Obviously I have
no idea of the amount of effort developing such a feature would
entail.

Regards,
Peter Geoghegan

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2010-02-16 18:09:16 Re: Having a plpgsql function return multiple rows that indicate its progress in a cursor like fashion
Previous Message Tom Lane 2010-02-16 16:31:11 Re: Check what a transaction did in the past