From: Florent Guillaume <efgeor@noos.fr>
To: tgl@sss.pgh.pa.us
Cc: pgsql-hackers@postgresql.org
Cc: pgman@candle.pha.pa.us
Subject: Re: [SQL] PL/PGSQL function with parameters
Date: Tue, 6 Feb 2001 22:15:22 +0100
Message-ID: <20010206221522.A21727@twin.efge.org> (raw)
In-Reply-To: <25204.981476161@sss.pgh.pa.us>
References: <7F124BC48D56D411812500D0B747251480F3D4@FILESERVER002>
<7F124BC48D56D411812500D0B747251480F3D4@FILESERVER002>
> > SQL = ''SELECT * INTO temp1 FROM '' || $1;
>
> I tried this, and it seems that "SELECT ... INTO foo" is not executed
> correctly by EXECUTE --- the INTO is handled as an ordinary select-into-
> table construct rather than plpgsql's select-into-variable.
>
> While I have not looked closely, I seem to recall that plpgsql handles
> INTO by stripping that clause out of the statement before it's passed to
> the SQL engine. Evidently that's not happening in the EXECUTE case.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: efgeor@noos.fr, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org, pgman@candle.pha.pa.us
Subject: Re: [SQL] PL/PGSQL function with parameters
In-Reply-To: <20010206221522.A21727@twin.efge.org>
References: <7F124BC48D56D411812500D0B747251480F3D4@FILESERVER002> <20010206221522.A21727@twin.efge.org>
* 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