X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 87F93475AE5 for ; Mon, 24 Feb 2003 10:33:53 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 87555-06 for ; Mon, 24 Feb 2003 10:33:43 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id AA2F847580B for ; Mon, 24 Feb 2003 10:30:24 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h1OFUE5u003493; Mon, 24 Feb 2003 10:30:14 -0500 (EST) To: Jeff Eckermann Cc: Josh Berkus , James Cooper , pgsql-sql@postgresql.org Subject: Re: syntax question In-reply-to: <20030224151740.15417.qmail@web20805.mail.yahoo.com> References: <20030224151740.15417.qmail@web20805.mail.yahoo.com> Comments: In-reply-to Jeff Eckermann message dated "Mon, 24 Feb 2003 07:17:40 -0800" Date: Mon, 24 Feb 2003 10:30:14 -0500 Message-ID: <3492.1046100614@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/531 X-Sequence-Number: 11929 Jeff Eckermann writes: > --- Josh Berkus 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