Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

Next:From: Bruce MomjianDate: 2010-07-09 16:59:26
Subject: Re: pg_upgrade issues
Previous:From: depsteinDate: 2010-07-09 14:15:53
Subject: Re: pg_upgrade issues

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group