Postgresql Create Trigger Function Example Python Code With Functions