Re: Testing if a Column Exists in a NEW record of a Trigger Function

From: Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com>
To: "Simon (dot)(dot)(dot)" <wedgetail_e(at)hotmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Testing if a Column Exists in a NEW record of a Trigger Function
Date: 2014-01-07 08:39:32
Message-ID: CADp-Sm5v63CQ3f_3eiP10pjoR7G8p+WszsfxWYvs90cko5pT1w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

In trigger functions you will have access to table and schema name who
invoked the trigger. I guess you can query for the column name from
catalogs.

Regards
Sameer

PS: Sent from my Mobile device. Pls ignore typo n abb

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message avpro avpro 2014-01-07 15:28:06 Re: how to add 'time with time zone' data types and 'interval' data types
Previous Message Simon ... 2014-01-07 04:15:52 Testing if a Column Exists in a NEW record of a Trigger Function