Error Code Portal
PostgreSQLPostgreSQLError code

42830

invalid foreign key

Alternative forms: invalid_foreign_key

Code 42830 · An issue reported by PostgreSQL.

invalid_foreign_key (Class 42 — Syntax Error or Access Rule Violation)

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.