Error code

PostgreSQL 23514

POSTGRESQL23514
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

check_violation — a row failed a table check constraint.

How to fix it

  1. Verify that the value meets the constraint condition before writing.
  2. Review the CHECK constraint definition with \d+ <table> in psql.
  3. Modify application-layer validation to reject out-of-range values before they reach the database.

Not affiliated with PostgreSQL. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.