If you can modify your insert statement, and live with an extra column in the data, no trigger is needed as best I can figure.
Create a unique index over the existing columns, add a "created_on" field and call insert on conflict (unique index) do nothing.
This should give the behavior you want.