thanks for the help guys, i've solved the problem using PL/PgSQL. once i had "created" the language it was really rather simple. thanks again
thanks for the help guys, i've solved the problem using PL/PgSQL. once i had "created" the language it was really rather simple. thanks again