cannot copy unfinished logical replication slot “…”

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 25 May 2026 · Reproduced live with the SQL on this page.

Symptoms

A statement failed with SQLSTATE 0A000 (feature_not_supported), reported at severity ERROR. This is a Feature Not Supported condition: PostgreSQL emits the message cannot copy unfinished logical replication slot "…".

What the server log shows

ERROR:  cannot copy unfinished logical replication slot "…"
HINT:  Retry when the source replication slot's confirmed_flush_lsn is valid.

Why PostgreSQL raises this

Class 0A (Feature Not Supported) means the statement was syntactically valid but asked for an operation this server does not implement, or that is not allowed in the current context.

As described in PostgreSQL’s Appendix A PostgreSQL Error Codes, SQLSTATE 0A000 carries the condition name feature_not_supported in class Feature Not Supported. (Paraphrased — see the linked reference for the exact wording.)

Common causes

How to fix it

  1. Rewrite the statement to avoid the unsupported feature.
  2. Check the version notes — the feature may exist in a newer release.
  3. Move the operation outside the disallowed context if applicable.

Version applicability

This message is present in PostgreSQL 15, 16, 17, 18 and 19.

Related & next steps

Reference: PostgreSQL Appendix A PostgreSQL Error Codes.