Re: BUG #5549: Feature: plpgsql should allow DECLARE cursor FOR EXECUTE '...'

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David Schmitt" <david(at)dasz(dot)at>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5549: Feature: plpgsql should allow DECLARE cursor FOR EXECUTE '...'
Date: 2010-07-09 14:53:36
Message-ID: 19715.1278687216@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"David Schmitt" <david(at)dasz(dot)at> writes:
> This is not implemented:

> DECLARE
> working_cursor NO SCROLL CURSOR FOR EXECUTE $$SELECT something $$ || tbl
> || $$ ... $$;

What's wrong with OPEN FOR EXECUTE?

The proposed addition seems a bit weird anyway since it presumes
nontrivial calculation to be done during variable initialization.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2010-07-09 16:59:26 Re: pg_upgrade issues
Previous Message depstein 2010-07-09 14:15:53 Re: pg_upgrade issues