pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Eckermann <jeff_eckermann@yahoo.com>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: James Cooper <jim@luckydigital.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: syntax question
Date: Mon, 24 Feb 2003 10:30:14 -0500
Message-ID: <3492.1046100614@sss.pgh.pa.us> (raw)
In-Reply-To: <20030224151740.15417.qmail@web20805.mail.yahoo.com>
References: <20030224151740.15417.qmail@web20805.mail.yahoo.com>

Jeff Eckermann <jeff_eckermann@yahoo.com> writes:
> --- Josh Berkus <josh@agliodbs.com> wrote:
>> you cannot select the results of
>> a query directly into a 
>> RECORD variable without a loop.

> Pardon??

I think Josh meant to say you can't select the results of a *dynamically
constructed* query without a loop --- that is, you need FOR ... EXECUTE.
A plain EXECUTE doesn't support plpgsql's notion of SELECT INTO.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <3492.1046100614@sss.pgh.pa.us>
Permalink:  ../3492.1046100614@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3492.1046100614@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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jeff_eckermann@yahoo.com, josh@agliodbs.com, jim@luckydigital.com
  Subject: Re: syntax question
  In-Reply-To: <3492.1046100614@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