There's nothing Esri-specific about PostgreSQL trigger syntax. Wouldn't you be better off askingin a PostgreSQL forum? The only part that's relevant here is that the trigger would be on the addstable if the layer was versioned.From a quick review of the PostgreSQL documentation, it appears you'll need to choose a languagein which to implement the trigger function (from those available in your install), so there's four optionsbesides writing a 'C' function, and you'll want to specify which one, along with the version of PG whenyou post.- V