Handle Copy Failures
If
Copy Data fails:
- β οΈ Log Error in
log.comment_snp
- π Append Table Name to
array_of_file_names
- π’ Call
upsert_comment
stored procedure to log failure reason
Condition: If Errors Exist π¦ (Validation)
- Check if
array_of_file_names
is greater than 0
- β
If No Errors: Log success message
- β If Errors Found: Log failure message with table count