I am trying to create a trigger in a postgre (9.6) database. My goal is to apped the last inserted row to a file. I can make it work by COPYing the whole table with
COPY