pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <aklaver@comcast.net>
To: pgsql-sql@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Mulham freshcode <mulhamcode@yahoo.com>
Cc: A. Kretschmer <andreas.kretschmer@schollglas.com>
Subject: Re: select into
Date: Fri, 24 Nov 2006 06:45:33 -0800
Message-ID: <200611240645.33431.aklaver@comcast.net> (raw)
In-Reply-To: <28318.1164343519@sss.pgh.pa.us>
References: <20061124042134.55885.qmail@web90512.mail.mud.yahoo.com>
	<28318.1164343519@sss.pgh.pa.us>

On Thursday 23 November 2006 08:45 pm, Tom Lane wrote:
> Mulham freshcode <mulhamcode@yahoo.com> writes:
> > execute sql_str1 into svc_data_rec ;
> >
> > svc_data_rec is a RECORD, which is supposed to be dynamic.
>
> This should work --- in PG 8.1 or later.  In older versions you'd have
> to fool around with a FOR ... IN EXECUTE ... loop.
>
> 			regards, tom lane
The documentation for pl/pgsql  in 8.1 and higher says different. 

http://www.postgresql.org/docs/8.1/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-...
" SELECT INTO is not currently supported within EXECUTE."

The change is reflected in the HISTORY text though. How is the best way to get 
a change made to the documentation?
-- 
Adrian Klaver	
aklaver@comcast.net



view thread (43+ messages)  latest in thread

Message-ID: <200611240645.33431.aklaver@comcast.net>
Permalink:  ../200611240645.33431.aklaver@comcast.net/
Also on:    postgresql.org/message-id/200611240645.33431.aklaver@comcast.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: aklaver@comcast.net, tgl@sss.pgh.pa.us, mulhamcode@yahoo.com, andreas.kretschmer@schollglas.com
  Subject: Re: select into
  In-Reply-To: <200611240645.33431.aklaver@comcast.net>

* 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