Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-sql by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group