Error code

PostgreSQL 55P03

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

What it means

lock_not_available — a required lock could not be acquired immediately.

How to fix it

  1. Identify and terminate the blocking session using pg_locks and pg_stat_activity.
  2. Increase lock_timeout or remove NOWAIT to allow the statement to wait.
  3. Retry the operation after a short delay when using advisory or application-level locking.

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