Triggers format to postgresql