pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Jan Wieck <JanWieck@Yahoo.com>
Cc: pgsql-hackers@postgreSQL.org
Cc: pgsql-sql@postgreSQL.org
Subject: Re: PL/pgsql EXECUTE 'SELECT INTO ...'
Date: Thu, 08 Feb 2001 14:49:26 -0500
Message-ID: <12696.981661766@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.30.0102082036370.1362-100000@peter.localdomain>
References: <Pine.LNX.4.30.0102082036370.1362-100000@peter.localdomain>

Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane writes:
>> I am inclined to keep our options open by forbidding EXECUTE 'SELECT
>> INTO ...' for now.  That's more than a tad annoying, because that leaves
>> no useful way to do a dynamically-built SELECT, but if we don't forbid
>> it I think we'll regret it later.

> You can always use CREATE TABLE AS.

Does SPI_exec() support that?  (Tries it ... seems to work ...)
Cool.  OK, we have the bases covered then; there's no need to allow
SELECT INTO inside EXECUTE until we can make it work as expected.

			regards, tom lane



view thread (8+ messages)

Message-ID: <12696.981661766@sss.pgh.pa.us>
Permalink:  ../12696.981661766@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12696.981661766@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, peter_e@gmx.net, JanWieck@Yahoo.com, pgsql-hackers@postgreSQL.org
  Subject: Re: PL/pgsql EXECUTE 'SELECT INTO ...'
  In-Reply-To: <12696.981661766@sss.pgh.pa.us>
  References: <Pine.LNX.4.30.0102082036370.1362-100000@peter.localdomain> <12696.981661766@sss.pgh.pa.us>

* 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