I have a plpgsql function to insert a record into a table. In MS SQL, I can user @@error to check the insert action is completed or not. What can I do in postgresql?Thanks a lot.