X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EF706476112 for ; Wed, 14 May 2003 12:02:15 -0400 (EDT) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with ESMTP id 78070-06 for ; Wed, 14 May 2003 12:02:12 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 23596475A4B for ; Wed, 14 May 2003 12:02:10 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h4EG2DU6024726; Wed, 14 May 2003 12:02:13 -0400 (EDT) To: SEB Menard Cc: pgsql-sql@postgresql.org Subject: Re: Questions for experts In-reply-to: <1052828144.19880.6.camel@mis-11.avior.ca> References: <1052828144.19880.6.camel@mis-11.avior.ca> Comments: In-reply-to SEB Menard message dated "13 May 2003 08:15:44 -0400" Date: Wed, 14 May 2003 12:02:13 -0400 Message-ID: <24725.1052928133@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/283 X-Sequence-Number: 13448 SEB Menard writes: > I want to perform dynamic SQL update in PL/PGSQL... i don't know the > name of the columns that i want to update. i just want to update a > complete line... How i can get the names of the columns of a table in > PL/PGSQL for produce a dynamic SQL update? Use pltcl, not plpgsql. This sort of thing is easy in pltcl, hard or impossible in plpgsql. regards, tom lane