Hey Stefan,
The sounds like you have a field "id" in you "c_transactions" withoutdefault value (which usually should be nextval('some_sequence'::regclass).Do you create a sequence for "c_transactions"."id" ?
-- Regards,Dmitriy