Ganesh, Did you have a look at example Example 35-2. A PL/pgSQL http://www.postgresql.org/docs/current/static/plpgsql-trigger.html
Regds maLLAH ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend