postgresql / PostgreSQL
PostgreSQL 42P07: duplicate_table
A table or relation with that name already exists.
Visible symptoms
- SQLSTATE 42P07.
- Condition name: duplicate_table.
Safe verification and recovery
Check before creating
Use the name of the existing table, or check whether it exists first.
Review migrations
Make sure the same migration is not applied twice.
Matching evidence and limitations
Reported error signals
Matches the documented error signal; it identifies the documented case, not the exact root cause of your request.
The local analyzer never executes suggested commands or treats a possible match as certainty.