Re: [PLPGSQL] PERFORM into an EXECUTE allowed ?

From: Bruno Baguette <bruno(dot)baguette(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [PLPGSQL] PERFORM into an EXECUTE allowed ?
Date: 2008-10-27 23:49:13
Message-ID: 49065379.1060205@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Le 27/10/08 13:12, Tom Lane a écrit :
> In that case you just do EXECUTE 'SELECT ...
>
> regards, tom lane

Hem... I feel quite stupid, but you're (again) right. It now run perfectly.

By the way, I said previously that EXECUTE does not allow to put the
results into a target. I was wrong again.

(cf.
<http://www.postgresql.org/docs/8.3/static/plpgsql-statements.html>,
chapter "38.5.4. Executing Dynamic Commands").

EXECUTE command-string [ INTO [STRICT] target ];

If I can make a suggestion, I think it could be interesting to complete
the doc with an additionnal example with such a EXECUTE that put results
in a target.

Thanks for the light ! :-)

Regards,

--
Bruno Baguette

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Abdul Rahman 2008-10-28 04:05:22 Re: Replication with slony-I
Previous Message Scott Marlowe 2008-10-27 23:43:13 Re: How Do I Find the Date When A Table Was Last Changed?