79835450

Date: 2025-12-02 03:18:59
Score: 0.5
Natty:
Report link
  1. You need to read plpgsql trigger fucntions. Hint it will tell why you don't want to RETURN NULL. Instead you to RETURN a modified NEW. 2) You should also look at ON CONFLICT Clause or for Postgres 15+ Merge. 3) Why not use a UNIQUE index on the column and catch the exception?
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Adrian Klaver