Cursors in PL/pgSQL

From: Ian Lance Taylor <ian(at)airs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Cursors in PL/pgSQL
Date: 2001-01-17 20:49:00
Message-ID: siae8pc3b7.fsf@daffy.airs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Cursors are not supported in PL/pgSQL. I don't see a TODO item to fix
this.

Fixing the syntax to support cursors is easy. The problem then is
that PL/pgSQL uses SPI, and SPI does not support cursors. In spi.c
there is a bit of code for cursor support, with the comment
/* Don't work currently */

Is adding cursor support to SPI a bad idea? Is adding cursor support
to PL/pgSQL undesirable?

Can anybody sketch the problems which would arise when adding cursor
support to SPI?

Thanks.

Ian

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Elphick 2001-01-17 21:07:00 Re: copy from stdin; bug?
Previous Message Hannu Krosing 2001-01-17 20:10:32 Re: Re: Performance degradation in PostgreSQL 7.1beta3 vs