locked = True
The exception names are generated from the PostgreSQL source code and includes
-classes for every error defined by PostgreSQL in versions between 9.6 and 14.
+classes for every error defined by PostgreSQL in versions between 9.6 and 15.
Every class in the module is named after what referred as "condition name" `in
the documentation`__, converted to CamelCase: e.g. the error 22012,
``division_by_zero`` is exposed by this module as the class `!DivisionByZero`.
Every exception class is a subclass of one of the :ref:`standard DB-API
exception <dbapi-exceptions>`, thus exposing the `~psycopg.Error` interface.
+.. versionchanged:: 3.1.4
+ Added exceptions introduced in PostgreSQL 15.
.. autofunction:: lookup
- Python 3.6 supported before Psycopg 3.1
-- PostgreSQL: from version 10 to 14
+- PostgreSQL: from version 10 to 15
- OS: Linux, macOS, Windows
The tests to verify the supported systems run in `Github workflows`__:
- Alternative PostgreSQL implementation;
- macOS hardware and releases not available on Github workflows.
-If you use an unsupported system things may work (because, for instance, the
+If you use an unsupported system, things might work (because, for instance, the
database may use the same wire protocol as PostgreSQL) but we cannot guarantee
the correct working or a smooth ride.