Re: Proper way of iterating over the column names in a trigger function.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rajesh Kumar Mallah" <mallah(dot)rajesh(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Proper way of iterating over the column names in a trigger function.
Date: 2006-12-06 15:02:16
Message-ID: 25785.1165417336@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Rajesh Kumar Mallah" <mallah(dot)rajesh(at)gmail(dot)com> 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Ray 2006-12-06 15:44:45 Query is fast and function is slow
Previous Message lucas 2006-12-06 12:32:57 Count field in query