Error Code Portal
PostgreSQLPostgreSQLError code

42P04

duplicate database

Alternative forms: duplicate_database

Code 42P04 · An issue reported by PostgreSQL.

duplicate_database (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.