Avoiding PostgreSQL Pitfalls: The Hidden Cost of Failing Inserts