Feature Not Supported — SQLSTATE 0A000
SQLSTATE 0A000 condition feature_not_supported class 0A — Feature Not Supported severity ERROR
Reproduced & verified on PostgreSQL 14.23, 15.18, 16.14, 17.10 and 18.4 — identical message on every version.
Last reviewed 29 May 2025 · Reproduced live with the SQL on this page.
! Symptoms Free
The requested feature is not supported in this context or version.
- The error is written to the server log and returned to the client carrying
SQLSTATE 0A000. - Any driver (libpq, JDBC, psycopg, npgsql, pgx) surfaces this code in its error object so you can branch on it programmatically.
- PL/pgSQL can trap it by name:
EXCEPTION WHEN feature_not_supported THEN.
1 Environment & reproduce Free
Severity: ERROR | PostgreSQL versions: 12, 13, 14, 15, 16, 17
Reproduce with the exact statement and read the full message in the server log (raise log_min_messages / set log_min_error_statement for more context).
? Root cause Free
PostgreSQL parsed the request but cannot perform it as written — the feature is unavailable here.
Common causes:
- Using a clause unsupported on this object (for example certain ALTER operations).
- A feature that exists only in a newer PostgreSQL version.
- An operation not allowed on a view, foreign table, or partition.
3 Recovery & verify Free
Steps to resolve 0A000:
- Check the documentation for the exact statement and your version.
- Rewrite using a supported alternative (for example recreate instead of an unsupported ALTER).
- Upgrade PostgreSQL if the feature was added in a later release.
Reference: PostgreSQL error codes — Class 0A (Feature Not Supported).