Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F1C5B9FA182 for ; Wed, 6 Dec 2006 11:02:30 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 34246-01 for ; Wed, 6 Dec 2006 11:02:25 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 1A17B9FA265 for ; Wed, 6 Dec 2006 11:02:24 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kB6F2GAG025786; Wed, 6 Dec 2006 10:02:16 -0500 (EST) To: "Rajesh Kumar Mallah" cc: pgsql-sql@postgresql.org Subject: Re: Proper way of iterating over the column names in a trigger function. In-reply-to: References: Comments: In-reply-to "Rajesh Kumar Mallah" message dated "Wed, 06 Dec 2006 18:00:13 +0530" Date: Wed, 06 Dec 2006 10:02:16 -0500 Message-ID: <25785.1165417336@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/69 X-Sequence-Number: 27025 "Rajesh Kumar Mallah" writes: > what is the proper way for iterating over column names of a table using > SPI_* functions. You need to pay attention to the attisdropped field of the TupleDesc entries. regards, tom lane