diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 0ba3d0a638..655a31d115 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -781,6 +781,8 @@ using the ``postgresql_where`` keyword argument:: Index('my_index', my_table.c.id, postgresql_where=my_table.c.value > 10) +.. _postgresql_operator_classes: + Operator Classes ^^^^^^^^^^^^^^^^ diff --git a/lib/sqlalchemy/dialects/postgresql/ext.py b/lib/sqlalchemy/dialects/postgresql/ext.py index d2c6e81a32..fce4a2559c 100644 --- a/lib/sqlalchemy/dialects/postgresql/ext.py +++ b/lib/sqlalchemy/dialects/postgresql/ext.py @@ -171,6 +171,11 @@ class ExcludeConstraint(ColumnCollectionConstraint): If set, emit WHERE when issuing DDL for this constraint. + :param ops: + Optional dictionary. Used to define operator classes for the + elements. + See :ref:`_postgresql_operator_classes` + """ columns = [] render_exprs = []