update postgresql error message parsing on foreign key