Postgresql Trigger Function If In Excel