Postgres Trigger Function Get Table In Excel