`QuotedString.encoding` has getter/setter in psycopg2, but psycopg2cffi has only a getter. https://github.com/chtd/psycopg2cffi/blob/83234afced937a3dc571e3c2fe3271f101550df2/psycopg2cffi/_impl/adapters.py#L233 https://github.com/psycopg/psycopg2/blob/1d3a89a0bba621dc1cc9b32db6d241bd2da85ad1/psycopg/adapter_qstring.c#L157 I found the difference because Django expects the setter. https://github.com/django/django/blob/c5c7a15b09368a58340d3a65ba9d1f1441e92dc8/django/db/backends/postgresql/schema.py#L43 Is it a psycopg2cffi or Django issue?