From: John DeSoi <desoi@pgedit.com>
To: Mark J Camilleri <markjcamilleri@yahoo.co.uk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Error on dynamic code.
Date: Fri, 15 Jul 2005 15:26:35 -0400
Message-ID: <5C174834-4EDD-46C2-9C73-A02B3D148545@pgedit.com> (raw)
In-Reply-To: <20050714074554.4E4EC52D55@svr1.postgresql.org>
References: <20050714074554.4E4EC52D55@svr1.postgresql.org>
On Jul 14, 2005, at 3:46 AM, Mark J Camilleri wrote:
>
>
> The funny thing is that the documentation I read about SELECT INTO
> and RECORD types give the following example, amongst others:
See the section below that on EXECUTE:
> The results from SELECT commands are discarded by EXECUTE, and
> SELECT INTO is not currently supported within EXECUTE. So there is
> no way to extract a result from a dynamically-created SELECT using
> the plain EXECUTE command. There are two other ways to do it,
> however: one is to use the FOR-IN-EXECUTE loop form described in
> Section 35.7.4, and the other is to use a cursor with OPEN-FOR-
> EXECUTE, as described in Section 35.8.2.
John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: desoi@pgedit.com, markjcamilleri@yahoo.co.uk
Subject: Re: Error on dynamic code.
In-Reply-To: <5C174834-4EDD-46C2-9C73-A02B3D148545@pgedit.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox