> We (my company) never found a way. We ended up writing java code that
> analyzed the catalog tables that generated the appropriate 'if'
> statements in the trigger functions for us....
Actually....we tinkered with hitting the catalog tables inside our
triggers, but for performance reasons, we generated the 'if' statements
instead....