Basically i just want to get the old value of a specific column before updating it and store it in another table. I want to accomplish this using a stored procedure in postgres.