Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A1FE2475D64 for ; Fri, 8 Nov 2002 04:06:12 -0500 (EST) Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by postgresql.org (Postfix) with SMTP id DECF7475D12 for ; Fri, 8 Nov 2002 04:06:10 -0500 (EST) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Fri Nov 08 10:06:10 2002 +0100 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id KAA07280 for ; Fri, 8 Nov 2002 10:06:10 +0100 (MET) Message-ID: <3DCB7E81.82132F2D@rodos.fzk.de> Date: Fri, 08 Nov 2002 10:06:10 +0100 From: Christoph Haller X-Mailer: Mozilla 4.06 [en] (X11; I; HP-UX B.10.20 9000/780) MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: PLpgSQL FOR IN EXECUTE question Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/132 X-Sequence-Number: 10274 Thanks to Josh, Richard, Tom EXECUTE ''SELECT CAST('' || quote_ident($1) || '' AS TEXT) AS foo FROM '' || quote_ident($2) and then list := list || '', '' || this_record.foo ; works perfectly. Regards, Christoph