sorry, am not that great at postgre either, so i forgot some few things :P
ignore my previous comments.
' It is now just exporting everything. I'd like it to export only the file that had just been imported, so basically the filename.
'
replace " FOR EACH STATEMENT" - this does call procedure for all rows
with "for each row" - calls procedure for any new,updated row
http://www.postgresql.org/docs/8.1/interactive/sql-createtrigger.html