Error Code Portal
PostgreSQLPostgreSQLError code

54001

statement too complex

Alternative forms: statement_too_complex

Code 54001 · An issue reported by PostgreSQL.

statement_too_complex (Class 54 — Program Limit Exceeded)

Troubleshooting and diagnostic links

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